@mjhls/mjh-framework 1.0.1082-404-v10 → 1.0.1082-c1
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 +6 -5
- package/dist/esm/View.js +6 -5
- package/package.json +1 -1
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,9 +1276,10 @@ 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 }]);
|
|
1281
|
+
var doc_url1 = cpModificationRequired ? getDocumentGroupUrl(documentGroup) : documentGroup.ancestor ? documentGroup.parent && !documentGroup.path.includes('/') ? !documentGroup.ancestor.includes('/') ? '/' + documentGroup.ancestor + '/' + documentGroup.parent.identifier.current + '/' + documentGroup.path : '/' + documentGroup.parent.identifier.current + '/' + documentGroup.path : !documentGroup.ancestor.includes('/') ? documentGroup.ancestor + '/' + documentGroup.path : '/' + documentGroup.path : documentGroup.parent ? !documentGroup.path.includes('/') ? '/' + documentGroup.parent.identifier.current + '/' + documentGroup.path : '/' + documentGroup.path : '/' + documentGroup.path;
|
|
1282
|
+
console.log("++++++++++++++DOC_URL1", doc_url1);
|
|
1282
1283
|
// if (documentGroup.parent) {
|
|
1283
1284
|
// relatedLinks = [
|
|
1284
1285
|
// ...relatedLinks,
|
|
@@ -1302,8 +1303,8 @@ var Article = React__default["default"].memo(React.forwardRef(function (props, r
|
|
|
1302
1303
|
return null;
|
|
1303
1304
|
}
|
|
1304
1305
|
|
|
1305
|
-
var cp_url = cpModificationRequired ? getTargeting.getContentPlacementUrl(cp) : cp.ancestor ? cp.parent && !cp.path.includes('/') ?
|
|
1306
|
-
var href = '' + cp_url;
|
|
1306
|
+
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;
|
|
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
|
|
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,9 +1266,10 @@ 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 }]);
|
|
1271
|
+
var doc_url1 = cpModificationRequired ? getDocumentGroupUrl(documentGroup) : documentGroup.ancestor ? documentGroup.parent && !documentGroup.path.includes('/') ? !documentGroup.ancestor.includes('/') ? '/' + documentGroup.ancestor + '/' + documentGroup.parent.identifier.current + '/' + documentGroup.path : '/' + documentGroup.parent.identifier.current + '/' + documentGroup.path : !documentGroup.ancestor.includes('/') ? documentGroup.ancestor + '/' + documentGroup.path : '/' + documentGroup.path : documentGroup.parent ? !documentGroup.path.includes('/') ? '/' + documentGroup.parent.identifier.current + '/' + documentGroup.path : '/' + documentGroup.path : '/' + documentGroup.path;
|
|
1272
|
+
console.log("++++++++++++++DOC_URL1", doc_url1);
|
|
1272
1273
|
// if (documentGroup.parent) {
|
|
1273
1274
|
// relatedLinks = [
|
|
1274
1275
|
// ...relatedLinks,
|
|
@@ -1292,8 +1293,8 @@ var Article = React__default.memo(forwardRef(function (props, ref) {
|
|
|
1292
1293
|
return null;
|
|
1293
1294
|
}
|
|
1294
1295
|
|
|
1295
|
-
var cp_url = cpModificationRequired ? getContentPlacementUrl(cp) : cp.ancestor ? cp.parent && !cp.path.includes('/') ?
|
|
1296
|
-
var href = '' + cp_url;
|
|
1296
|
+
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;
|
|
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
|
|
1318
|
+
{ className: 'related-links', style: { color: 'blue' }, href: relatedLink.href },
|
|
1318
1319
|
relatedLink.label
|
|
1319
1320
|
),
|
|
1320
1321
|
React__default.createElement(
|