@mjhls/mjh-framework 1.0.1082-404-v8 → 1.0.1082-404-v10
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 +8 -5
- package/dist/esm/View.js +8 -5
- package/package.json +1 -1
package/dist/cjs/View.js
CHANGED
|
@@ -124,7 +124,8 @@ var getDocumentGroupUrl = function getDocumentGroupUrl(docGroup) {
|
|
|
124
124
|
if (typeof url !== 'undefined') {
|
|
125
125
|
url = url + '/' + docGroup.path;
|
|
126
126
|
} else {
|
|
127
|
-
url = '/' + docGroup.path
|
|
127
|
+
// url = '/' + docGroup.path
|
|
128
|
+
return null;
|
|
128
129
|
}
|
|
129
130
|
|
|
130
131
|
return url;
|
|
@@ -147,7 +148,8 @@ var getDocumentGroupName = function getDocumentGroupName(docGroup) {
|
|
|
147
148
|
if (typeof name !== 'undefined') {
|
|
148
149
|
name = name + ' | <b>' + docGroup.name + '</b>';
|
|
149
150
|
} else {
|
|
150
|
-
name = '<b>' + docGroup.name + '</b>'
|
|
151
|
+
// name = '<b>' + docGroup.name + '</b>'
|
|
152
|
+
return null;
|
|
151
153
|
}
|
|
152
154
|
|
|
153
155
|
return name && typeof name != 'undefined' ? name : null;
|
|
@@ -189,6 +191,7 @@ var DocumentGroup = function DocumentGroup(_ref) {
|
|
|
189
191
|
thumbnailUrl = urlFor({ client: client, source: mediaSeriesGroup.thumbnail });
|
|
190
192
|
}
|
|
191
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);
|
|
192
195
|
return React__default["default"].createElement(
|
|
193
196
|
'div',
|
|
194
197
|
null,
|
|
@@ -197,7 +200,7 @@ var DocumentGroup = function DocumentGroup(_ref) {
|
|
|
197
200
|
{ style: { textAlign: 'center', fontWeight: 600 } },
|
|
198
201
|
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
|
|
199
202
|
),
|
|
200
|
-
React__default["default"].createElement(
|
|
203
|
+
url && name && React__default["default"].createElement(
|
|
201
204
|
'a',
|
|
202
205
|
{
|
|
203
206
|
href: url,
|
|
@@ -1272,7 +1275,7 @@ var Article = React__default["default"].memo(React.forwardRef(function (props, r
|
|
|
1272
1275
|
return null;
|
|
1273
1276
|
}
|
|
1274
1277
|
|
|
1275
|
-
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;
|
|
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;
|
|
1276
1279
|
|
|
1277
1280
|
var href = '' + doc_url;
|
|
1278
1281
|
relatedLinks = [].concat(toConsumableArray._toConsumableArray(relatedLinks), [{ label: documentGroup.name, href: href }]);
|
|
@@ -1299,7 +1302,7 @@ var Article = React__default["default"].memo(React.forwardRef(function (props, r
|
|
|
1299
1302
|
return null;
|
|
1300
1303
|
}
|
|
1301
1304
|
|
|
1302
|
-
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_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;
|
|
1303
1306
|
var href = '' + cp_url;
|
|
1304
1307
|
relatedLinks = [].concat(toConsumableArray._toConsumableArray(relatedLinks), [{ label: cp.name, href: href }]);
|
|
1305
1308
|
});
|
package/dist/esm/View.js
CHANGED
|
@@ -114,7 +114,8 @@ var getDocumentGroupUrl = function getDocumentGroupUrl(docGroup) {
|
|
|
114
114
|
if (typeof url !== 'undefined') {
|
|
115
115
|
url = url + '/' + docGroup.path;
|
|
116
116
|
} else {
|
|
117
|
-
url = '/' + docGroup.path
|
|
117
|
+
// url = '/' + docGroup.path
|
|
118
|
+
return null;
|
|
118
119
|
}
|
|
119
120
|
|
|
120
121
|
return url;
|
|
@@ -137,7 +138,8 @@ var getDocumentGroupName = function getDocumentGroupName(docGroup) {
|
|
|
137
138
|
if (typeof name !== 'undefined') {
|
|
138
139
|
name = name + ' | <b>' + docGroup.name + '</b>';
|
|
139
140
|
} else {
|
|
140
|
-
name = '<b>' + docGroup.name + '</b>'
|
|
141
|
+
// name = '<b>' + docGroup.name + '</b>'
|
|
142
|
+
return null;
|
|
141
143
|
}
|
|
142
144
|
|
|
143
145
|
return name && typeof name != 'undefined' ? name : null;
|
|
@@ -179,6 +181,7 @@ var DocumentGroup = function DocumentGroup(_ref) {
|
|
|
179
181
|
thumbnailUrl = urlFor({ client: client, source: mediaSeriesGroup.thumbnail });
|
|
180
182
|
}
|
|
181
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);
|
|
182
185
|
return React__default.createElement(
|
|
183
186
|
'div',
|
|
184
187
|
null,
|
|
@@ -187,7 +190,7 @@ var DocumentGroup = function DocumentGroup(_ref) {
|
|
|
187
190
|
{ style: { textAlign: 'center', fontWeight: 600 } },
|
|
188
191
|
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
|
|
189
192
|
),
|
|
190
|
-
React__default.createElement(
|
|
193
|
+
url && name && React__default.createElement(
|
|
191
194
|
'a',
|
|
192
195
|
{
|
|
193
196
|
href: url,
|
|
@@ -1262,7 +1265,7 @@ var Article = React__default.memo(forwardRef(function (props, ref) {
|
|
|
1262
1265
|
return null;
|
|
1263
1266
|
}
|
|
1264
1267
|
|
|
1265
|
-
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;
|
|
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;
|
|
1266
1269
|
|
|
1267
1270
|
var href = '' + doc_url;
|
|
1268
1271
|
relatedLinks = [].concat(_toConsumableArray(relatedLinks), [{ label: documentGroup.name, href: href }]);
|
|
@@ -1289,7 +1292,7 @@ var Article = React__default.memo(forwardRef(function (props, ref) {
|
|
|
1289
1292
|
return null;
|
|
1290
1293
|
}
|
|
1291
1294
|
|
|
1292
|
-
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_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;
|
|
1293
1296
|
var href = '' + cp_url;
|
|
1294
1297
|
relatedLinks = [].concat(_toConsumableArray(relatedLinks), [{ label: cp.name, href: href }]);
|
|
1295
1298
|
});
|