@mjhls/mjh-framework 1.0.385 → 1.0.387

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/dist/esm/index.js CHANGED
@@ -30,7 +30,7 @@ import { A as ADInfeed } from './ADInfeed-88c335d9.js';
30
30
  export { default as DeckContent } from './DeckContent.js';
31
31
  import { i as isFunction_1, a as isArray_1, _ as _arrayMap } from './get-53653403.js';
32
32
  export { A as AD, G as GridContent } from './GridContent-3229be76.js';
33
- import './AuthorComponent-beb2ad16.js';
33
+ import { A as AuthorComponent } from './AuthorComponent-beb2ad16.js';
34
34
  export { default as DeckQueue } from './DeckQueue.js';
35
35
  import 'react-bootstrap/Media';
36
36
  export { default as ThumbnailCard } from './ThumbnailCard.js';
@@ -52,8 +52,8 @@ export { default as IssueDeck } from './IssueDeck.js';
52
52
  import 'react-bootstrap/Badge';
53
53
  export { default as IssueContentDeck } from './IssueContentDeck.js';
54
54
  import Spinner from 'react-bootstrap/Spinner';
55
- import { M as MdPictureAsPdf } from './Normal-508d09f1.js';
56
- export { A as AD728x90, C as Column1, a as Column2, b as Column3, f as HamMagazine, H as Header, L as LeftNav, e as NavDvm, c as NavMagazine, N as NavNative, d as NavNormal, P as PageFilter, S as Search, g as SideFooter, T as TemplateNormal } from './Normal-508d09f1.js';
55
+ import { M as MdPictureAsPdf } from './Normal-c171a945.js';
56
+ export { A as AD728x90, C as Column1, a as Column2, b as Column3, f as HamMagazine, H as Header, L as LeftNav, e as NavDvm, c as NavMagazine, N as NavNative, d as NavNormal, P as PageFilter, S as Search, g as SideFooter, T as TemplateNormal } from './Normal-c171a945.js';
57
57
  import 'react-bootstrap/ListGroup';
58
58
  import Head from 'next/head';
59
59
  import Accordion from 'react-bootstrap/Accordion';
@@ -2745,11 +2745,6 @@ var EventsDeck = function EventsDeck(_ref) {
2745
2745
  React__default.createElement(
2746
2746
  'div',
2747
2747
  { className: 'speaker-section', style: { border: '1px solid', borderRadius: '8px', padding: '8px' } },
2748
- React__default.createElement(
2749
- 'h6',
2750
- { className: 'speaker-title', style: { fontWeight: '600', marginBottom: '0', marginTop: '.25rem' } },
2751
- 'SPEAKER'
2752
- ),
2753
2748
  speakerInfo.map(function (info, index) {
2754
2749
  return React__default.createElement(
2755
2750
  'p',
@@ -6667,9 +6662,9 @@ var Media = function Media(_ref) {
6667
6662
  'a',
6668
6663
  _extends$2({}, uploadDoc.downloadMedia ? {
6669
6664
  onClick: function onClick() {
6670
- download(uploadDoc.asset.url, uploadDoc.asset.originalFilename);
6665
+ download(uploadDoc.asset.url);
6671
6666
  }
6672
- } : { href: uploadDoc.asset.url, target: '_blank', rel: 'noopener noreferrer' }, {
6667
+ } : { href: uploadDoc.asset.url, target: blank ? '_blank' : '_self', rel: 'noopener noreferrer' }, {
6673
6668
  style: { paddingLeft: '4px', paddingRight: '4px' },
6674
6669
  id: 'media-link' }),
6675
6670
  caption
@@ -16354,48 +16349,6 @@ var GridHero = function GridHero(props) {
16354
16349
  topArticleThumbnail = props.thumbnail;
16355
16350
  }
16356
16351
 
16357
- var renderAuthor = function renderAuthor(authorDetail, index, length) {
16358
- if (authorDetail) {
16359
- var _id = authorDetail._id,
16360
- displayName = authorDetail.displayName,
16361
- url = authorDetail.url;
16362
-
16363
- if (displayName && url && url.current) {
16364
- return React__default.createElement(
16365
- 'div',
16366
- { key: _id },
16367
- index === 0 && React__default.createElement(
16368
- 'span',
16369
- { className: 'pr-1' },
16370
- 'By'
16371
- ),
16372
- React__default.createElement(
16373
- 'a',
16374
- { href: '/authors/' + url.current, className: 'text-muted' },
16375
- displayName,
16376
- length !== index + 1 && React__default.createElement('br', null)
16377
- )
16378
- );
16379
- } else if (displayName) {
16380
- return React__default.createElement(
16381
- 'div',
16382
- { key: _id },
16383
- index === 0 && React__default.createElement(
16384
- 'span',
16385
- { className: 'pr-1' },
16386
- 'By'
16387
- ),
16388
- React__default.createElement(
16389
- 'span',
16390
- { className: 'text-muted' },
16391
- displayName,
16392
- length !== index + 1 && React__default.createElement('br', null)
16393
- )
16394
- );
16395
- }
16396
- } else return null;
16397
- };
16398
-
16399
16352
  return React__default.createElement(
16400
16353
  'div',
16401
16354
  { className: 'article-hero' },
@@ -16428,9 +16381,11 @@ var GridHero = function GridHero(props) {
16428
16381
  { className: 'article-date' },
16429
16382
  moment(topArticle.published).format('MMMM DD, YYYY ')
16430
16383
  ),
16431
- topArticle.authorMapping && topArticle.authorMapping.length > 0 && topArticle.authorMapping.map(function (authorDetail, index) {
16432
- return renderAuthor(authorDetail, index, topArticle.authorMapping.length);
16433
- }),
16384
+ topArticle.authorMapping && topArticle.authorMapping.length > 0 && React__default.createElement(
16385
+ LazyLoad,
16386
+ { height: 50 },
16387
+ React__default.createElement(AuthorComponent, { key: topArticle.url.current, index: topArticle.url.current, authors: topArticle.authorMapping })
16388
+ ),
16434
16389
  topArticle.summary && React__default.createElement(
16435
16390
  'p',
16436
16391
  { className: 'top-article-summary' },
@@ -16454,7 +16409,7 @@ var GridHero = function GridHero(props) {
16454
16409
  return React__default.createElement(
16455
16410
  'div',
16456
16411
  { key: index, className: 'grid-sub-article sub-grid-' + (index + 1) },
16457
- React__default.createElement(
16412
+ articleThumbnail.length && React__default.createElement(
16458
16413
  'a',
16459
16414
  { href: '/view/' + article.url.current },
16460
16415
  React__default.createElement('img', { src: articleThumbnail, alt: articleAltText })
@@ -16476,9 +16431,11 @@ var GridHero = function GridHero(props) {
16476
16431
  { className: 'article-date' },
16477
16432
  moment(article.published).format('MMMM DD, YYYY ')
16478
16433
  ),
16479
- article.authorMapping && article.authorMapping.length > 0 && article.authorMapping.map(function (authorDetail, index) {
16480
- return renderAuthor(authorDetail, index, article.authorMapping.length);
16481
- }),
16434
+ article.authorMapping && article.authorMapping.length > 0 && React__default.createElement(
16435
+ LazyLoad,
16436
+ { height: 50 },
16437
+ React__default.createElement(AuthorComponent, { key: index.toString(), index: index, authors: article.authorMapping })
16438
+ ),
16482
16439
  article.summary && React__default.createElement(
16483
16440
  'p',
16484
16441
  { className: 'sub-article-summary' },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mjhls/mjh-framework",
3
- "version": "1.0.385",
3
+ "version": "1.0.387",
4
4
  "description": "Foundation Framework",
5
5
  "author": "mjh-framework",
6
6
  "license": "MIT",