@mjhls/mjh-framework 1.0.380 → 1.0.382
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/cjs/index.js +11 -5
- package/dist/esm/index.js +11 -5
- package/package.json +1 -1
package/README.md
CHANGED
package/dist/cjs/index.js
CHANGED
|
@@ -16998,10 +16998,12 @@ var InscreenSensor = function (_React$Component) {
|
|
|
16998
16998
|
}(React__default.Component);
|
|
16999
16999
|
|
|
17000
17000
|
var renderAuthor$1 = function renderAuthor(authorName, authorURL, index, length) {
|
|
17001
|
+
var defaultUrl = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 'authors';
|
|
17002
|
+
|
|
17001
17003
|
if (authorName && authorURL) {
|
|
17002
17004
|
return React__default.createElement(
|
|
17003
17005
|
'a',
|
|
17004
|
-
{ href: '/
|
|
17006
|
+
{ href: '/' + defaultUrl + '/' + authorURL.current, key: index },
|
|
17005
17007
|
authorName,
|
|
17006
17008
|
length !== index + 1 && React__default.createElement(
|
|
17007
17009
|
'span',
|
|
@@ -17087,7 +17089,8 @@ var Article = function Article(props) {
|
|
|
17087
17089
|
ISIContent = props.ISIContent,
|
|
17088
17090
|
changeUrl = props.changeUrl,
|
|
17089
17091
|
shareOptions = props.shareOptions,
|
|
17090
|
-
cpModificationRequired = props.cpModificationRequired
|
|
17092
|
+
cpModificationRequired = props.cpModificationRequired,
|
|
17093
|
+
authorPrefix = props.authorPrefix;
|
|
17091
17094
|
|
|
17092
17095
|
var _useState = React.useState(null),
|
|
17093
17096
|
_useState2 = slicedToArray._slicedToArray(_useState, 2),
|
|
@@ -17217,6 +17220,7 @@ var Article = function Article(props) {
|
|
|
17217
17220
|
blocks: [].concat(toConsumableArray._toConsumableArray(body.slice(0, selectedIndex))),
|
|
17218
17221
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
17219
17222
|
}, client.config())),
|
|
17223
|
+
React__default.createElement('span', { className: 'clearfix' }),
|
|
17220
17224
|
React__default.createElement(
|
|
17221
17225
|
'div',
|
|
17222
17226
|
{ id: 'contextual-native-ad-' + payload._id, className: 'contextual-native-ad' },
|
|
@@ -17315,7 +17319,7 @@ var Article = function Article(props) {
|
|
|
17315
17319
|
return React__default.createElement(
|
|
17316
17320
|
'span',
|
|
17317
17321
|
{ key: index },
|
|
17318
|
-
renderAuthor$1(authorDetail.displayName, authorDetail.url, index, authorDetails.length)
|
|
17322
|
+
renderAuthor$1(authorDetail.displayName, authorDetail.url, index, authorDetails.length, authorPrefix)
|
|
17319
17323
|
);
|
|
17320
17324
|
}),
|
|
17321
17325
|
React__default.createElement(
|
|
@@ -17432,7 +17436,9 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
17432
17436
|
_props$sponsoredTaxon = props.sponsoredTaxonomies,
|
|
17433
17437
|
sponsoredTaxonomies = _props$sponsoredTaxon === undefined ? [] : _props$sponsoredTaxon,
|
|
17434
17438
|
_props$cpModification = props.cpModificationRequired,
|
|
17435
|
-
cpModificationRequired = _props$cpModification === undefined ? false : _props$cpModification
|
|
17439
|
+
cpModificationRequired = _props$cpModification === undefined ? false : _props$cpModification,
|
|
17440
|
+
_props$authorPrefix = props.authorPrefix,
|
|
17441
|
+
authorPrefix = _props$authorPrefix === undefined ? 'authors' : _props$authorPrefix;
|
|
17436
17442
|
|
|
17437
17443
|
|
|
17438
17444
|
var getTargeting = function getTargeting(article, position) {
|
|
@@ -17643,7 +17649,7 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
17643
17649
|
if (!checkSponseredArticle(article) && Ads.getNativeContextualAD) {
|
|
17644
17650
|
article.contextualAD = Ads.getNativeContextualAD(getTargeting(article, 'native-ad'));
|
|
17645
17651
|
}
|
|
17646
|
-
return React__default.createElement(Article, _extends$2._extends({ key: index }, props, { changeUrl: changeUrl, article: article, cpModificationRequired: cpModificationRequired }));
|
|
17652
|
+
return React__default.createElement(Article, _extends$2._extends({ key: index }, props, { changeUrl: changeUrl, authorPrfix: authorPrefix, article: article, cpModificationRequired: cpModificationRequired }));
|
|
17647
17653
|
})
|
|
17648
17654
|
);
|
|
17649
17655
|
};
|
package/dist/esm/index.js
CHANGED
|
@@ -16995,10 +16995,12 @@ var InscreenSensor = function (_React$Component) {
|
|
|
16995
16995
|
}(React__default.Component);
|
|
16996
16996
|
|
|
16997
16997
|
var renderAuthor$1 = function renderAuthor(authorName, authorURL, index, length) {
|
|
16998
|
+
var defaultUrl = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 'authors';
|
|
16999
|
+
|
|
16998
17000
|
if (authorName && authorURL) {
|
|
16999
17001
|
return React__default.createElement(
|
|
17000
17002
|
'a',
|
|
17001
|
-
{ href: '/
|
|
17003
|
+
{ href: '/' + defaultUrl + '/' + authorURL.current, key: index },
|
|
17002
17004
|
authorName,
|
|
17003
17005
|
length !== index + 1 && React__default.createElement(
|
|
17004
17006
|
'span',
|
|
@@ -17084,7 +17086,8 @@ var Article = function Article(props) {
|
|
|
17084
17086
|
ISIContent = props.ISIContent,
|
|
17085
17087
|
changeUrl = props.changeUrl,
|
|
17086
17088
|
shareOptions = props.shareOptions,
|
|
17087
|
-
cpModificationRequired = props.cpModificationRequired
|
|
17089
|
+
cpModificationRequired = props.cpModificationRequired,
|
|
17090
|
+
authorPrefix = props.authorPrefix;
|
|
17088
17091
|
|
|
17089
17092
|
var _useState = useState(null),
|
|
17090
17093
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -17214,6 +17217,7 @@ var Article = function Article(props) {
|
|
|
17214
17217
|
blocks: [].concat(_toConsumableArray(body.slice(0, selectedIndex))),
|
|
17215
17218
|
imageOptions: { w: 320, h: 240, fit: 'max' }
|
|
17216
17219
|
}, client.config())),
|
|
17220
|
+
React__default.createElement('span', { className: 'clearfix' }),
|
|
17217
17221
|
React__default.createElement(
|
|
17218
17222
|
'div',
|
|
17219
17223
|
{ id: 'contextual-native-ad-' + payload._id, className: 'contextual-native-ad' },
|
|
@@ -17312,7 +17316,7 @@ var Article = function Article(props) {
|
|
|
17312
17316
|
return React__default.createElement(
|
|
17313
17317
|
'span',
|
|
17314
17318
|
{ key: index },
|
|
17315
|
-
renderAuthor$1(authorDetail.displayName, authorDetail.url, index, authorDetails.length)
|
|
17319
|
+
renderAuthor$1(authorDetail.displayName, authorDetail.url, index, authorDetails.length, authorPrefix)
|
|
17316
17320
|
);
|
|
17317
17321
|
}),
|
|
17318
17322
|
React__default.createElement(
|
|
@@ -17429,7 +17433,9 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
17429
17433
|
_props$sponsoredTaxon = props.sponsoredTaxonomies,
|
|
17430
17434
|
sponsoredTaxonomies = _props$sponsoredTaxon === undefined ? [] : _props$sponsoredTaxon,
|
|
17431
17435
|
_props$cpModification = props.cpModificationRequired,
|
|
17432
|
-
cpModificationRequired = _props$cpModification === undefined ? false : _props$cpModification
|
|
17436
|
+
cpModificationRequired = _props$cpModification === undefined ? false : _props$cpModification,
|
|
17437
|
+
_props$authorPrefix = props.authorPrefix,
|
|
17438
|
+
authorPrefix = _props$authorPrefix === undefined ? 'authors' : _props$authorPrefix;
|
|
17433
17439
|
|
|
17434
17440
|
|
|
17435
17441
|
var getTargeting = function getTargeting(article, position) {
|
|
@@ -17640,7 +17646,7 @@ var ArticleQueue = function ArticleQueue(props) {
|
|
|
17640
17646
|
if (!checkSponseredArticle(article) && Ads.getNativeContextualAD) {
|
|
17641
17647
|
article.contextualAD = Ads.getNativeContextualAD(getTargeting(article, 'native-ad'));
|
|
17642
17648
|
}
|
|
17643
|
-
return React__default.createElement(Article, _extends$2({ key: index }, props, { changeUrl: changeUrl, article: article, cpModificationRequired: cpModificationRequired }));
|
|
17649
|
+
return React__default.createElement(Article, _extends$2({ key: index }, props, { changeUrl: changeUrl, authorPrfix: authorPrefix, article: article, cpModificationRequired: cpModificationRequired }));
|
|
17644
17650
|
})
|
|
17645
17651
|
);
|
|
17646
17652
|
};
|