@mjhls/mjh-framework 1.0.1082-404-v10 → 1.0.1082-c2

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/View.js CHANGED
@@ -191,7 +191,6 @@ var DocumentGroup = function DocumentGroup(_ref) {
191
191
  thumbnailUrl = urlFor({ client: client, source: mediaSeriesGroup.thumbnail });
192
192
  }
193
193
  var margin = article.documentGroupMapping && article.documentGroupMapping[0] && article.documentGroupMapping[0].parent && article.documentGroupMapping[0].parent.parent && article.documentGroupMapping[0].parent.parent.contextText || article.documentGroup && article.documentGroup.parent && article.documentGroup.parent.parent && article.documentGroup.parent.parent.contextText ? 'none' : '1rem';
194
- console.log("check me", article.documentGroupMapping && article.documentGroupMapping[0] && article.documentGroupMapping[0].parent && article.documentGroupMapping[0].parent.parent && article.documentGroupMapping[0].parent.parent.contextText ? article.documentGroupMapping[0].parent.parent.contextText : article.documentGroup && article.documentGroup.parent && article.documentGroup.parent.parent && article.documentGroup.parent.parent.contextText ? article.documentGroup.parent.parent.contextText : null);
195
194
  return React__default["default"].createElement(
196
195
  'div',
197
196
  null,
@@ -1267,6 +1266,7 @@ var Article = React__default["default"].memo(React.forwardRef(function (props, r
1267
1266
  };
1268
1267
 
1269
1268
  var RelevantTopics = function RelevantTopics() {
1269
+
1270
1270
  if (content_placement && content_placement.length > 0 || documentGroupMapping && documentGroupMapping.length > 0) {
1271
1271
  var relatedLinks = [];
1272
1272
  if (documentGroupMapping && documentGroupMapping.length > 0) {
@@ -1276,7 +1276,6 @@ var Article = React__default["default"].memo(React.forwardRef(function (props, r
1276
1276
  }
1277
1277
 
1278
1278
  var doc_url = cpModificationRequired ? getDocumentGroupUrl(documentGroup) : documentGroup.ancestor ? documentGroup.parent && !documentGroup.path.includes('/') ? '/' + documentGroup.ancestor + '/' + documentGroup.parent.identifier.current + '/' + documentGroup.path : '/' + documentGroup.ancestor + '/' + documentGroup.path : documentGroup.parent ? !documentGroup.path.includes('/') ? '/' + documentGroup.parent.identifier.current + '/' + documentGroup.path : '/' + documentGroup.path : '/' + documentGroup.path;
1279
-
1280
1279
  var href = '' + doc_url;
1281
1280
  relatedLinks = [].concat(toConsumableArray._toConsumableArray(relatedLinks), [{ label: documentGroup.name, href: href }]);
1282
1281
  // if (documentGroup.parent) {
@@ -1302,8 +1301,10 @@ var Article = React__default["default"].memo(React.forwardRef(function (props, r
1302
1301
  return null;
1303
1302
  }
1304
1303
 
1305
- var cp_url = cpModificationRequired ? getTargeting.getContentPlacementUrl(cp) : cp.ancestor ? cp.parent && !cp.path.includes('/') ? '/' + cp.ancestor + '/' + cp.parent + '/' + cp.path : '/' + cp.ancestor + '/' + cp.path : cp.parent ? !cp.path.includes('/') ? '/' + cp.parent + '/' + cp.path : '/' + cp.path : '/' + cp.path;
1306
- var href = '' + cp_url;
1304
+ var cp_url = cpModificationRequired ? getTargeting.getContentPlacementUrl(cp) : cp.ancestor ? cp.parent && !cp.path.includes('/') ? cp.ancestor + '/' + cp.parent + '/' + cp.path : cp.ancestor + '/' + cp.path : cp.parent ? !cp.path.includes('/') ? cp.parent + '/' + cp.path : '' + cp.path : '' + cp.path;
1305
+ var cp_url1 = cpModificationRequired ? getTargeting.getContentPlacementUrl(cp) : cp.ancestor ? cp.parent && !cp.path.includes('/') ? !cp.ancestor.includes('/') ? '/' + cp.ancestor + '/' + cp.parent + '/' + cp.path : '/' + cp.parent + '/' + cp.path : !cp.ancestor.includes('/') ? cp.ancestor + '/' + cp.path : '/' + cp.path : cp.parent ? !cp.path.includes('/') ? '/' + cp.parent + '/' + cp.path : '/' + cp.path : '/' + cp.path;
1306
+ console.log("++++++++++++++++++++++cp url+++++++++++", cp_url1);
1307
+ var href = '/' + cp_url;
1307
1308
  relatedLinks = [].concat(toConsumableArray._toConsumableArray(relatedLinks), [{ label: cp.name, href: href }]);
1308
1309
  });
1309
1310
  }
@@ -1324,7 +1325,7 @@ var Article = React__default["default"].memo(React.forwardRef(function (props, r
1324
1325
  { key: index, className: 'related-link' },
1325
1326
  React__default["default"].createElement(
1326
1327
  'a',
1327
- { className: 'related-links article', style: { color: 'blue' }, href: relatedLink.href },
1328
+ { className: 'related-links', style: { color: 'blue' }, href: relatedLink.href },
1328
1329
  relatedLink.label
1329
1330
  ),
1330
1331
  React__default["default"].createElement(
package/dist/esm/View.js CHANGED
@@ -181,7 +181,6 @@ var DocumentGroup = function DocumentGroup(_ref) {
181
181
  thumbnailUrl = urlFor({ client: client, source: mediaSeriesGroup.thumbnail });
182
182
  }
183
183
  var margin = article.documentGroupMapping && article.documentGroupMapping[0] && article.documentGroupMapping[0].parent && article.documentGroupMapping[0].parent.parent && article.documentGroupMapping[0].parent.parent.contextText || article.documentGroup && article.documentGroup.parent && article.documentGroup.parent.parent && article.documentGroup.parent.parent.contextText ? 'none' : '1rem';
184
- console.log("check me", article.documentGroupMapping && article.documentGroupMapping[0] && article.documentGroupMapping[0].parent && article.documentGroupMapping[0].parent.parent && article.documentGroupMapping[0].parent.parent.contextText ? article.documentGroupMapping[0].parent.parent.contextText : article.documentGroup && article.documentGroup.parent && article.documentGroup.parent.parent && article.documentGroup.parent.parent.contextText ? article.documentGroup.parent.parent.contextText : null);
185
184
  return React__default.createElement(
186
185
  'div',
187
186
  null,
@@ -1257,6 +1256,7 @@ var Article = React__default.memo(forwardRef(function (props, ref) {
1257
1256
  };
1258
1257
 
1259
1258
  var RelevantTopics = function RelevantTopics() {
1259
+
1260
1260
  if (content_placement && content_placement.length > 0 || documentGroupMapping && documentGroupMapping.length > 0) {
1261
1261
  var relatedLinks = [];
1262
1262
  if (documentGroupMapping && documentGroupMapping.length > 0) {
@@ -1266,7 +1266,6 @@ var Article = React__default.memo(forwardRef(function (props, ref) {
1266
1266
  }
1267
1267
 
1268
1268
  var doc_url = cpModificationRequired ? getDocumentGroupUrl(documentGroup) : documentGroup.ancestor ? documentGroup.parent && !documentGroup.path.includes('/') ? '/' + documentGroup.ancestor + '/' + documentGroup.parent.identifier.current + '/' + documentGroup.path : '/' + documentGroup.ancestor + '/' + documentGroup.path : documentGroup.parent ? !documentGroup.path.includes('/') ? '/' + documentGroup.parent.identifier.current + '/' + documentGroup.path : '/' + documentGroup.path : '/' + documentGroup.path;
1269
-
1270
1269
  var href = '' + doc_url;
1271
1270
  relatedLinks = [].concat(_toConsumableArray(relatedLinks), [{ label: documentGroup.name, href: href }]);
1272
1271
  // if (documentGroup.parent) {
@@ -1292,8 +1291,10 @@ var Article = React__default.memo(forwardRef(function (props, ref) {
1292
1291
  return null;
1293
1292
  }
1294
1293
 
1295
- var cp_url = cpModificationRequired ? getContentPlacementUrl(cp) : cp.ancestor ? cp.parent && !cp.path.includes('/') ? '/' + cp.ancestor + '/' + cp.parent + '/' + cp.path : '/' + cp.ancestor + '/' + cp.path : cp.parent ? !cp.path.includes('/') ? '/' + cp.parent + '/' + cp.path : '/' + cp.path : '/' + cp.path;
1296
- var href = '' + cp_url;
1294
+ var cp_url = cpModificationRequired ? getContentPlacementUrl(cp) : cp.ancestor ? cp.parent && !cp.path.includes('/') ? cp.ancestor + '/' + cp.parent + '/' + cp.path : cp.ancestor + '/' + cp.path : cp.parent ? !cp.path.includes('/') ? cp.parent + '/' + cp.path : '' + cp.path : '' + cp.path;
1295
+ var cp_url1 = cpModificationRequired ? getContentPlacementUrl(cp) : cp.ancestor ? cp.parent && !cp.path.includes('/') ? !cp.ancestor.includes('/') ? '/' + cp.ancestor + '/' + cp.parent + '/' + cp.path : '/' + cp.parent + '/' + cp.path : !cp.ancestor.includes('/') ? cp.ancestor + '/' + cp.path : '/' + cp.path : cp.parent ? !cp.path.includes('/') ? '/' + cp.parent + '/' + cp.path : '/' + cp.path : '/' + cp.path;
1296
+ console.log("++++++++++++++++++++++cp url+++++++++++", cp_url1);
1297
+ var href = '/' + cp_url;
1297
1298
  relatedLinks = [].concat(_toConsumableArray(relatedLinks), [{ label: cp.name, href: href }]);
1298
1299
  });
1299
1300
  }
@@ -1314,7 +1315,7 @@ var Article = React__default.memo(forwardRef(function (props, ref) {
1314
1315
  { key: index, className: 'related-link' },
1315
1316
  React__default.createElement(
1316
1317
  'a',
1317
- { className: 'related-links article', style: { color: 'blue' }, href: relatedLink.href },
1318
+ { className: 'related-links', style: { color: 'blue' }, href: relatedLink.href },
1318
1319
  relatedLink.label
1319
1320
  ),
1320
1321
  React__default.createElement(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mjhls/mjh-framework",
3
- "version": "1.0.1082-404-v10",
3
+ "version": "1.0.1082-c2",
4
4
  "description": "Foundation Framework",
5
5
  "author": "mjh-framework",
6
6
  "license": "MIT",