@mjhls/mjh-framework 1.0.381 → 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 CHANGED
@@ -1,5 +1,5 @@
1
1
 
2
- # mjh-framework v. 1.0.381
2
+ # mjh-framework v. 1.0.382
3
3
 
4
4
 
5
5
  > Foundation Framework
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: '/authors/' + authorURL.current, key: index },
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),
@@ -17316,7 +17319,7 @@ var Article = function Article(props) {
17316
17319
  return React__default.createElement(
17317
17320
  'span',
17318
17321
  { key: index },
17319
- renderAuthor$1(authorDetail.displayName, authorDetail.url, index, authorDetails.length)
17322
+ renderAuthor$1(authorDetail.displayName, authorDetail.url, index, authorDetails.length, authorPrefix)
17320
17323
  );
17321
17324
  }),
17322
17325
  React__default.createElement(
@@ -17433,7 +17436,9 @@ var ArticleQueue = function ArticleQueue(props) {
17433
17436
  _props$sponsoredTaxon = props.sponsoredTaxonomies,
17434
17437
  sponsoredTaxonomies = _props$sponsoredTaxon === undefined ? [] : _props$sponsoredTaxon,
17435
17438
  _props$cpModification = props.cpModificationRequired,
17436
- 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;
17437
17442
 
17438
17443
 
17439
17444
  var getTargeting = function getTargeting(article, position) {
@@ -17644,7 +17649,7 @@ var ArticleQueue = function ArticleQueue(props) {
17644
17649
  if (!checkSponseredArticle(article) && Ads.getNativeContextualAD) {
17645
17650
  article.contextualAD = Ads.getNativeContextualAD(getTargeting(article, 'native-ad'));
17646
17651
  }
17647
- 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 }));
17648
17653
  })
17649
17654
  );
17650
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: '/authors/' + authorURL.current, key: index },
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),
@@ -17313,7 +17316,7 @@ var Article = function Article(props) {
17313
17316
  return React__default.createElement(
17314
17317
  'span',
17315
17318
  { key: index },
17316
- renderAuthor$1(authorDetail.displayName, authorDetail.url, index, authorDetails.length)
17319
+ renderAuthor$1(authorDetail.displayName, authorDetail.url, index, authorDetails.length, authorPrefix)
17317
17320
  );
17318
17321
  }),
17319
17322
  React__default.createElement(
@@ -17430,7 +17433,9 @@ var ArticleQueue = function ArticleQueue(props) {
17430
17433
  _props$sponsoredTaxon = props.sponsoredTaxonomies,
17431
17434
  sponsoredTaxonomies = _props$sponsoredTaxon === undefined ? [] : _props$sponsoredTaxon,
17432
17435
  _props$cpModification = props.cpModificationRequired,
17433
- 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;
17434
17439
 
17435
17440
 
17436
17441
  var getTargeting = function getTargeting(article, position) {
@@ -17641,7 +17646,7 @@ var ArticleQueue = function ArticleQueue(props) {
17641
17646
  if (!checkSponseredArticle(article) && Ads.getNativeContextualAD) {
17642
17647
  article.contextualAD = Ads.getNativeContextualAD(getTargeting(article, 'native-ad'));
17643
17648
  }
17644
- 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 }));
17645
17650
  })
17646
17651
  );
17647
17652
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mjhls/mjh-framework",
3
- "version": "1.0.381",
3
+ "version": "1.0.382",
4
4
  "description": "Foundation Framework",
5
5
  "author": "mjh-framework",
6
6
  "license": "MIT",