@mjhls/mjh-framework 1.0.859-beta.1 → 1.0.859-beta.3
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/cjs/AlgoliaSearch.js +1 -1
- package/dist/cjs/ArticleProgramLandingPage.js +6 -6
- package/dist/cjs/ArticleSeriesLandingPage.js +4 -4
- package/dist/cjs/ArticleSeriesListing.js +1 -1
- package/dist/cjs/DeckContent.js +1 -1
- package/dist/cjs/DeckQueue.js +1 -1
- package/dist/cjs/ExternalResources.js +2 -2
- package/dist/cjs/GridContent.js +1 -1
- package/dist/cjs/HorizontalArticleListing.js +2 -2
- package/dist/cjs/IssueLanding.js +2 -2
- package/dist/cjs/MasterDeck.js +1 -1
- package/dist/cjs/MediaSeriesLanding.js +7 -7
- package/dist/cjs/PartnerDetailListing.js +2739 -17
- package/dist/cjs/TaxonomyDescription.js +2 -2
- package/dist/cjs/VideoProgramLandingPage.js +5 -5
- package/dist/cjs/VideoSeriesLandingPage.js +4 -4
- package/dist/cjs/VideoSeriesListing.js +1 -1
- package/dist/cjs/View.js +21 -24
- package/dist/cjs/faundadb.js +15 -15
- package/dist/cjs/getRootDocGroup.js +3 -3
- package/dist/cjs/getSerializers.js +2 -2
- package/dist/cjs/{index-998ad42c.js → index-d79b659e.js} +1 -1
- package/dist/cjs/index.js +2 -2
- package/dist/cjs/{inherits-452ff02c.js → inherits-1f5a1c72.js} +2 -2
- package/dist/esm/PartnerDetailListing.js +2748 -26
- package/dist/esm/View.js +19 -22
- package/package.json +2 -1
package/dist/esm/View.js
CHANGED
|
@@ -467,35 +467,35 @@ function generateSchema(props) {
|
|
|
467
467
|
thumbnail = _props$article.thumbnail,
|
|
468
468
|
published = _props$article.published,
|
|
469
469
|
_updatedAt = _props$article._updatedAt,
|
|
470
|
-
seoTag = _props$article.seoTag,
|
|
470
|
+
_props$article$seoTag = _props$article.seoTag,
|
|
471
|
+
seoTag = _props$article$seoTag === undefined ? [] : _props$article$seoTag,
|
|
471
472
|
_props$Website = props.Website,
|
|
472
473
|
liveDomain = _props$Website.liveDomain,
|
|
473
474
|
websiteTitle = _props$Website.title,
|
|
474
475
|
logo = _props$Website.logo,
|
|
475
476
|
client = props.client;
|
|
476
477
|
|
|
477
|
-
var
|
|
478
|
-
return author.displayName;
|
|
479
|
-
}) && authorDetails.reduce(function (result, author) {
|
|
480
|
-
if (author.displayName) return [].concat(_toConsumableArray(result), [{
|
|
481
|
-
'@type': 'Person',
|
|
482
|
-
name: author.displayName
|
|
483
|
-
}]);else return result;
|
|
484
|
-
}, []);
|
|
478
|
+
var isAuthorFound = authorDetails && authorDetails.length > 0 && authorDetails[0].displayName;
|
|
485
479
|
var articleSection = content_placement && content_placement.map(function (cp) {
|
|
486
480
|
return cp.name;
|
|
487
481
|
});
|
|
488
482
|
|
|
489
|
-
if (title && thumbnail &&
|
|
490
|
-
return
|
|
483
|
+
if (title && thumbnail && published && websiteTitle && liveDomain && logo && isAuthorFound) {
|
|
484
|
+
return {
|
|
491
485
|
'@context': 'https://schema.org',
|
|
492
486
|
'@type': 'NewsArticle',
|
|
487
|
+
mainEntityOfPage: 'https://' + liveDomain + '/view/' + url.current,
|
|
493
488
|
headline: title,
|
|
489
|
+
description: summary,
|
|
490
|
+
articleBody: toPlainText(body),
|
|
491
|
+
inLanguage: 'en-US',
|
|
494
492
|
image: urlFor({ source: thumbnail, client: client }),
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
493
|
+
keywords: seoTag.join(),
|
|
494
|
+
articleSection: articleSection,
|
|
495
|
+
author: {
|
|
496
|
+
'@type': 'Person',
|
|
497
|
+
name: authorDetails[0].displayName
|
|
498
|
+
},
|
|
499
499
|
publisher: {
|
|
500
500
|
'@type': 'Organization',
|
|
501
501
|
name: websiteTitle,
|
|
@@ -503,13 +503,10 @@ function generateSchema(props) {
|
|
|
503
503
|
'@type': 'ImageObject',
|
|
504
504
|
url: 'https://' + liveDomain + logo
|
|
505
505
|
}
|
|
506
|
-
}
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
'@id': 'https://' + liveDomain + '/view/' + url.current
|
|
511
|
-
}
|
|
512
|
-
}, authors && authors.length > 0 && { author: authors });
|
|
506
|
+
},
|
|
507
|
+
datePublished: published,
|
|
508
|
+
dateModified: _updatedAt
|
|
509
|
+
};
|
|
513
510
|
}
|
|
514
511
|
return null;
|
|
515
512
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mjhls/mjh-framework",
|
|
3
|
-
"version": "1.0.859-beta.
|
|
3
|
+
"version": "1.0.859-beta.3",
|
|
4
4
|
"description": "Foundation Framework",
|
|
5
5
|
"author": "mjh-framework",
|
|
6
6
|
"license": "MIT",
|
|
@@ -68,6 +68,7 @@
|
|
|
68
68
|
"react-device-detect": "^1.11.14",
|
|
69
69
|
"react-dfp": "^0.19.0",
|
|
70
70
|
"react-dom": "^16.12.0",
|
|
71
|
+
"react-facebook": "^8.1.4",
|
|
71
72
|
"react-icons": "^3.8.0",
|
|
72
73
|
"react-infinite-scroll-component": "^5.0.4",
|
|
73
74
|
"react-lazyload": "^2.6.5",
|