@mjhls/mjh-framework 1.0.884-beta.0 → 1.0.884-beta.1
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/AD.js +1 -1
- 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/ContentCardPaginated.js +409 -0
- package/dist/cjs/DeckContent.js +1 -1
- package/dist/cjs/DeckQueue.js +1 -1
- package/dist/cjs/DeckQueuePaginated.js +340 -0
- package/dist/cjs/{Dfp-14d2455c.js → Dfp-f492f985.js} +2 -2
- package/dist/cjs/ExternalResources.js +2 -2
- package/dist/cjs/GridContent.js +4 -116
- package/dist/cjs/GridContentPaginated.js +699 -0
- package/dist/cjs/HorizontalArticleListing.js +2 -2
- package/dist/cjs/ImageSlider-38f25e66.js +3989 -0
- package/dist/cjs/IssueLanding.js +2 -2
- package/dist/cjs/MasterDeck.js +1 -1
- package/dist/cjs/MasterDeckPaginated.js +444 -0
- package/dist/cjs/MediaSeriesCard-8d27612b.js +9411 -0
- package/dist/cjs/MediaSeriesLanding.js +26 -9415
- package/dist/cjs/MediaSeriesLandingPaginated.js +522 -0
- package/dist/cjs/Pagination-2f76381b.js +51 -0
- package/dist/cjs/PartnerDetailListing.js +15 -3986
- package/dist/cjs/PartnerDetailListingPaginated.js +312 -0
- package/dist/cjs/PublicationFeature-28c549f2.js +126 -0
- package/dist/cjs/QueueDeckExpandedPaginated.js +1378 -0
- 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 +83 -3
- 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-396089c0.js → index-54adcbc3.js} +1 -1
- package/dist/cjs/index.js +4 -4
- package/dist/cjs/{inherits-cba9c846.js → inherits-12d44cca.js} +2 -2
- package/dist/esm/{ADInfeed-8a038df9.js → ADInfeed-d767ebe2.js} +2 -2
- package/dist/esm/ArticleProgramLandingPage.js +1 -1
- package/dist/esm/ArticleSeriesLandingPage.js +1 -1
- package/dist/esm/ArticleSeriesListing.js +2 -2
- package/dist/esm/Column1.js +4 -4
- package/dist/esm/Column2.js +5 -5
- package/dist/esm/Column3.js +6 -6
- package/dist/esm/ContentCardPaginated.js +403 -0
- package/dist/esm/DeckContent.js +16 -16
- package/dist/esm/DeckQueue.js +18 -18
- package/dist/esm/DeckQueuePaginated.js +334 -0
- package/dist/esm/EventsDeck.js +26 -26
- package/dist/esm/ExternalResources.js +3 -3
- package/dist/esm/GridContent.js +38 -150
- package/dist/esm/GridContentPaginated.js +693 -0
- package/dist/esm/HamMagazine.js +4 -4
- package/dist/esm/HorizontalArticleListing.js +1 -1
- package/dist/esm/ImageSlider-a3154b97.js +3980 -0
- package/dist/esm/IssueContentDeck.js +14 -14
- package/dist/esm/IssueDeck.js +22 -22
- package/dist/esm/IssueLanding.js +2 -2
- package/dist/esm/MasterDeck.js +4 -4
- package/dist/esm/MasterDeckPaginated.js +438 -0
- package/dist/esm/MediaSeriesCard-1dd7eae8.js +9403 -0
- package/dist/esm/MediaSeriesLanding.js +23 -9411
- package/dist/esm/MediaSeriesLandingPaginated.js +517 -0
- package/dist/esm/NavDvm.js +3 -3
- package/dist/esm/NavMagazine.js +4 -4
- package/dist/esm/NavNative.js +5 -5
- package/dist/esm/Pagination-c0db7ca1.js +46 -0
- package/dist/esm/PartnerDetailListing.js +12 -3982
- package/dist/esm/PartnerDetailListingPaginated.js +307 -0
- package/dist/esm/PubSection.js +1 -1
- package/dist/esm/PublicationDeck.js +18 -18
- package/dist/esm/PublicationFeature-fa24dedb.js +121 -0
- package/dist/esm/PublicationLanding.js +22 -22
- package/dist/esm/QueueDeckExpanded.js +1 -1
- package/dist/esm/QueueDeckExpandedPaginated.js +1372 -0
- package/dist/esm/RolesDeck.js +12 -12
- package/dist/esm/Search.js +2 -2
- package/dist/esm/{SocialSearchComponent-b5be0e6c.js → SocialSearchComponent-dca69151.js} +3 -3
- package/dist/esm/TaxonomyCard.js +16 -16
- package/dist/esm/TaxonomyDescription.js +1 -1
- package/dist/esm/TemplateNormal.js +4 -4
- package/dist/esm/VideoProgramLandingPage.js +6 -6
- package/dist/esm/VideoSeriesLandingPage.js +1 -1
- package/dist/esm/VideoSeriesListing.js +3 -3
- package/dist/esm/View.js +84 -4
- package/dist/esm/getSerializers.js +1 -1
- package/dist/esm/{index-0e04b7d7.js → index-d1476645.js} +19 -19
- package/dist/esm/index.js +10 -9
- package/package.json +2 -1
- package/dist/cjs/Schema.js +0 -100
- package/dist/esm/Schema.js +0 -95
package/dist/cjs/Schema.js
DELETED
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
|
|
4
|
-
|
|
5
|
-
require('./_commonjsHelpers-06173234.js');
|
|
6
|
-
require('./core.get-iterator-method-f3c44602.js');
|
|
7
|
-
require('./_iter-detect-05795553.js');
|
|
8
|
-
var toConsumableArray = require('./toConsumableArray-c9b8a0d0.js');
|
|
9
|
-
require('./_object-pie-68c5bcbc.js');
|
|
10
|
-
var _extends$1 = require('./extends-eed4f016.js');
|
|
11
|
-
require('./web.dom.iterable-e34bf324.js');
|
|
12
|
-
var React = require('react');
|
|
13
|
-
var React__default = _interopDefault(React);
|
|
14
|
-
require('./slicedToArray-f6d4eaa8.js');
|
|
15
|
-
require('./index-be0c82be.js');
|
|
16
|
-
var urlFor = require('./urlFor.js');
|
|
17
|
-
var stringify = require('./stringify-bbc68047.js');
|
|
18
|
-
|
|
19
|
-
function toPlainText() {
|
|
20
|
-
var blocks = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
21
|
-
|
|
22
|
-
return blocks
|
|
23
|
-
// loop through each block
|
|
24
|
-
.map(function (block) {
|
|
25
|
-
// if it's not a text block with children,
|
|
26
|
-
// return nothing
|
|
27
|
-
if (block._type !== 'block' || !block.children) {
|
|
28
|
-
return '';
|
|
29
|
-
}
|
|
30
|
-
// loop through the children spans, and join the
|
|
31
|
-
// text strings
|
|
32
|
-
return block.children.map(function (child) {
|
|
33
|
-
return child.text;
|
|
34
|
-
}).join('');
|
|
35
|
-
})
|
|
36
|
-
// join the paragraphs leaving split by two linebreaks
|
|
37
|
-
.join('\n\n');
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
function generateSchema(props) {
|
|
41
|
-
var _props$article = props.article,
|
|
42
|
-
title = _props$article.title,
|
|
43
|
-
body = _props$article.body,
|
|
44
|
-
summary = _props$article.summary,
|
|
45
|
-
url = _props$article.url,
|
|
46
|
-
content_placement = _props$article.content_placement,
|
|
47
|
-
authorDetails = _props$article.authorDetails,
|
|
48
|
-
thumbnail = _props$article.thumbnail,
|
|
49
|
-
published = _props$article.published,
|
|
50
|
-
_updatedAt = _props$article._updatedAt,
|
|
51
|
-
seoTag = _props$article.seoTag,
|
|
52
|
-
_props$Website = props.Website,
|
|
53
|
-
liveDomain = _props$Website.liveDomain,
|
|
54
|
-
websiteTitle = _props$Website.title,
|
|
55
|
-
logo = _props$Website.logo,
|
|
56
|
-
client = props.client;
|
|
57
|
-
|
|
58
|
-
var authors = authorDetails && authorDetails.length > 0 && authorDetails.reduce(function (result, author) {
|
|
59
|
-
if (author.displayName) return [].concat(toConsumableArray._toConsumableArray(result), [{
|
|
60
|
-
'@type': 'Person',
|
|
61
|
-
name: author.displayName
|
|
62
|
-
}]);else return result;
|
|
63
|
-
}, []);
|
|
64
|
-
var articleSection = content_placement && content_placement.map(function (cp) {
|
|
65
|
-
return cp.name;
|
|
66
|
-
});
|
|
67
|
-
var image = thumbnail && thumbnail.asset && client ? urlFor({ source: thumbnail, client: client }) : liveDomain && logo && 'https://' + liveDomain + logo;
|
|
68
|
-
|
|
69
|
-
if (title && published && _updatedAt) {
|
|
70
|
-
return _extends$1._extends({
|
|
71
|
-
'@context': 'https://schema.org',
|
|
72
|
-
'@type': 'NewsArticle',
|
|
73
|
-
headline: title,
|
|
74
|
-
datePublished: published,
|
|
75
|
-
dateModified: _updatedAt,
|
|
76
|
-
inLanguage: 'en-US'
|
|
77
|
-
}, image && { image: image }, liveDomain && url && url.current && {
|
|
78
|
-
mainEntityOfPage: {
|
|
79
|
-
'@type': 'WebPage',
|
|
80
|
-
'@id': 'https://' + liveDomain + '/view/' + url.current
|
|
81
|
-
}
|
|
82
|
-
}, websiteTitle && liveDomain && logo && {
|
|
83
|
-
publisher: {
|
|
84
|
-
'@type': 'Organization',
|
|
85
|
-
name: websiteTitle,
|
|
86
|
-
logo: {
|
|
87
|
-
'@type': 'ImageObject',
|
|
88
|
-
url: 'https://' + liveDomain + logo
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
}, articleSection && { articleSection: articleSection }, seoTag && seoTag.length > 0 && { keywords: seoTag.join() }, body && body.length > 0 && { articleBody: toPlainText(body) }, summary && { description: summary }, authors && authors.length > 0 && { author: authors });
|
|
92
|
-
}
|
|
93
|
-
return null;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
var Schema = function Schema(props) {
|
|
97
|
-
return React__default.createElement('script', { type: 'application/ld+json', dangerouslySetInnerHTML: { __html: stringify._JSON$stringify(generateSchema(props)) } });
|
|
98
|
-
};
|
|
99
|
-
|
|
100
|
-
module.exports = Schema;
|
package/dist/esm/Schema.js
DELETED
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
import './_commonjsHelpers-0c4b6f40.js';
|
|
2
|
-
import './core.get-iterator-method-86d4db69.js';
|
|
3
|
-
import './_iter-detect-130ee549.js';
|
|
4
|
-
import { _ as _toConsumableArray } from './toConsumableArray-32282905.js';
|
|
5
|
-
import './_object-pie-33c40e79.js';
|
|
6
|
-
import { _ as _extends } from './extends-5b1796d4.js';
|
|
7
|
-
import './web.dom.iterable-f8f967cd.js';
|
|
8
|
-
import React__default from 'react';
|
|
9
|
-
import './slicedToArray-67a08c9c.js';
|
|
10
|
-
import './index-73819142.js';
|
|
11
|
-
import urlFor from './urlFor.js';
|
|
12
|
-
import { _ as _JSON$stringify } from './stringify-70b72959.js';
|
|
13
|
-
|
|
14
|
-
function toPlainText() {
|
|
15
|
-
var blocks = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
16
|
-
|
|
17
|
-
return blocks
|
|
18
|
-
// loop through each block
|
|
19
|
-
.map(function (block) {
|
|
20
|
-
// if it's not a text block with children,
|
|
21
|
-
// return nothing
|
|
22
|
-
if (block._type !== 'block' || !block.children) {
|
|
23
|
-
return '';
|
|
24
|
-
}
|
|
25
|
-
// loop through the children spans, and join the
|
|
26
|
-
// text strings
|
|
27
|
-
return block.children.map(function (child) {
|
|
28
|
-
return child.text;
|
|
29
|
-
}).join('');
|
|
30
|
-
})
|
|
31
|
-
// join the paragraphs leaving split by two linebreaks
|
|
32
|
-
.join('\n\n');
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
function generateSchema(props) {
|
|
36
|
-
var _props$article = props.article,
|
|
37
|
-
title = _props$article.title,
|
|
38
|
-
body = _props$article.body,
|
|
39
|
-
summary = _props$article.summary,
|
|
40
|
-
url = _props$article.url,
|
|
41
|
-
content_placement = _props$article.content_placement,
|
|
42
|
-
authorDetails = _props$article.authorDetails,
|
|
43
|
-
thumbnail = _props$article.thumbnail,
|
|
44
|
-
published = _props$article.published,
|
|
45
|
-
_updatedAt = _props$article._updatedAt,
|
|
46
|
-
seoTag = _props$article.seoTag,
|
|
47
|
-
_props$Website = props.Website,
|
|
48
|
-
liveDomain = _props$Website.liveDomain,
|
|
49
|
-
websiteTitle = _props$Website.title,
|
|
50
|
-
logo = _props$Website.logo,
|
|
51
|
-
client = props.client;
|
|
52
|
-
|
|
53
|
-
var authors = authorDetails && authorDetails.length > 0 && authorDetails.reduce(function (result, author) {
|
|
54
|
-
if (author.displayName) return [].concat(_toConsumableArray(result), [{
|
|
55
|
-
'@type': 'Person',
|
|
56
|
-
name: author.displayName
|
|
57
|
-
}]);else return result;
|
|
58
|
-
}, []);
|
|
59
|
-
var articleSection = content_placement && content_placement.map(function (cp) {
|
|
60
|
-
return cp.name;
|
|
61
|
-
});
|
|
62
|
-
var image = thumbnail && thumbnail.asset && client ? urlFor({ source: thumbnail, client: client }) : liveDomain && logo && 'https://' + liveDomain + logo;
|
|
63
|
-
|
|
64
|
-
if (title && published && _updatedAt) {
|
|
65
|
-
return _extends({
|
|
66
|
-
'@context': 'https://schema.org',
|
|
67
|
-
'@type': 'NewsArticle',
|
|
68
|
-
headline: title,
|
|
69
|
-
datePublished: published,
|
|
70
|
-
dateModified: _updatedAt,
|
|
71
|
-
inLanguage: 'en-US'
|
|
72
|
-
}, image && { image: image }, liveDomain && url && url.current && {
|
|
73
|
-
mainEntityOfPage: {
|
|
74
|
-
'@type': 'WebPage',
|
|
75
|
-
'@id': 'https://' + liveDomain + '/view/' + url.current
|
|
76
|
-
}
|
|
77
|
-
}, websiteTitle && liveDomain && logo && {
|
|
78
|
-
publisher: {
|
|
79
|
-
'@type': 'Organization',
|
|
80
|
-
name: websiteTitle,
|
|
81
|
-
logo: {
|
|
82
|
-
'@type': 'ImageObject',
|
|
83
|
-
url: 'https://' + liveDomain + logo
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
}, articleSection && { articleSection: articleSection }, seoTag && seoTag.length > 0 && { keywords: seoTag.join() }, body && body.length > 0 && { articleBody: toPlainText(body) }, summary && { description: summary }, authors && authors.length > 0 && { author: authors });
|
|
87
|
-
}
|
|
88
|
-
return null;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
var Schema = function Schema(props) {
|
|
92
|
-
return React__default.createElement('script', { type: 'application/ld+json', dangerouslySetInnerHTML: { __html: _JSON$stringify(generateSchema(props)) } });
|
|
93
|
-
};
|
|
94
|
-
|
|
95
|
-
export default Schema;
|