@mjhls/mjh-framework 1.0.89 → 1.0.90
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 +38 -40
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +37 -39
- 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';
|
|
@@ -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' } },
|
|
6296
|
+
React__default.createElement(
|
|
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
|
+
),
|
|
6295
6305
|
React__default.createElement(
|
|
6296
|
-
Media$1,
|
|
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,
|