@mjhls/mjh-framework 1.0.109-8.2 → 1.0.109-8.bc

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.
@@ -35,10 +35,12 @@ var Breadcrumbs = function Breadcrumbs(_ref) {
35
35
  setParentPathName = _useState6[1];
36
36
 
37
37
  var get_parent_path = function get_parent_path(parsedUrl) {
38
+ console.log("parsedUrl", parsedUrl);
38
39
  var parent_path = '';
39
- for (var i = 1; i < parsedUrl.length - 3; i++) {
40
- if (parsedUrl.length > i + 1) {
41
- parent_path = '' + parsedUrl[parsedUrl.length - (i + 1)] + (parent_path ? '/' + parent_path : '');
40
+ console.log("======", '' + parsedUrl[parsedUrl.length - (i + 1)] + (parent_path ? '/' + parent_path : ''));
41
+ for (var _i = 1; _i < parsedUrl.length - 3; _i++) {
42
+ if (parsedUrl.length > _i + 1) {
43
+ parent_path = '' + parsedUrl[parsedUrl.length - (_i + 1)] + (parent_path ? '/' + parent_path : '');
42
44
  }
43
45
  }
44
46
 
package/dist/cjs/View.js CHANGED
@@ -20,7 +20,7 @@ var SocialShare = require('./SocialShare.js');
20
20
  var getSerializers = require('./index-a26637a3.js');
21
21
  var AdSlot = require('./AdSlot.js');
22
22
  var SeriesSlider = require('./SeriesSlider-086a8319.js');
23
- var getTargeting = require('./getTargeting-7ce7037b.js');
23
+ var getTargeting = require('./getTargeting-5b954783.js');
24
24
  var getKeywords = require('./getKeywords.js');
25
25
  var urlFor = require('./urlFor.js');
26
26
  var urlForFile = require('./urlForFile-5084fc48.js');
@@ -880,7 +880,6 @@ var RelevantTopics = function RelevantTopics(props) {
880
880
  });
881
881
  }
882
882
  if (content_placement && content_placement.length > 0) {
883
- console.log("content_placement: ", content_placement);
884
883
  content_placement.filter(function (item) {
885
884
  return item.path !== 'news';
886
885
  }).forEach(function (cp) {
@@ -888,7 +887,6 @@ var RelevantTopics = function RelevantTopics(props) {
888
887
  return null;
889
888
  }
890
889
  var cp_url = cpModificationRequired ? getTargeting.getContentPlacementUrl(cp) : cp.path;
891
- console.log("cp_url: ", cp_url);
892
890
  var href = '/' + cp_url;
893
891
  relatedLinks = [].concat(toConsumableArray._toConsumableArray(relatedLinks), [{ label: cp.name, href: href }]);
894
892
  });
@@ -899,7 +897,6 @@ var RelevantTopics = function RelevantTopics(props) {
899
897
 
900
898
  relatedLinks = [].concat(toConsumableArray._toConsumableArray(relatedLinks), [{ label: issueGroup.name, href: issueMapping + '/' + issueGroup.parent.identifier.current + '/' + issueGroup.identifier.current }]);
901
899
  }
902
- console.log("RELATED LINKS: ", relatedLinks);
903
900
  if (relatedLinks && relatedLinks.length > 0) {
904
901
  return React__default["default"].createElement(
905
902
  'div',
@@ -908,7 +905,7 @@ var RelevantTopics = function RelevantTopics(props) {
908
905
  if (relatedLink && relatedLink.href && relatedLink.label) {
909
906
  return React__default["default"].createElement(
910
907
  'span',
911
- { key: relatedLink.label, className: 'related-link me-too' },
908
+ { key: relatedLink.label, className: 'related-link' },
912
909
  React__default["default"].createElement(
913
910
  'a',
914
911
  { className: 'related-links', style: { color: 'blue' }, href: relatedLink.href },
@@ -1281,8 +1278,6 @@ var Article = React__default["default"].memo(React.forwardRef(function (props, r
1281
1278
 
1282
1279
  var RelevantTopics = function RelevantTopics() {
1283
1280
  if (content_placement && content_placement.length > 0 || documentGroupMapping && documentGroupMapping.length > 0) {
1284
- console.log("content_placement 1", content_placement);
1285
- console.log("documentGroupMapping 1", documentGroupMapping);
1286
1281
  var relatedLinks = [];
1287
1282
  if (documentGroupMapping && documentGroupMapping.length > 0) {
1288
1283
  documentGroupMapping.forEach(function (documentGroup) {
@@ -1324,7 +1319,6 @@ var Article = React__default["default"].memo(React.forwardRef(function (props, r
1324
1319
 
1325
1320
  var href = '' + docUrl;
1326
1321
  relatedLinks = [].concat(toConsumableArray._toConsumableArray(relatedLinks), [{ label: documentGroup.name, href: href }]);
1327
- console.log("DOC RELATED", relatedLinks);
1328
1322
  // if (documentGroup.parent) {
1329
1323
  // relatedLinks = [
1330
1324
  // ...relatedLinks,
@@ -1340,20 +1334,15 @@ var Article = React__default["default"].memo(React.forwardRef(function (props, r
1340
1334
  // }
1341
1335
  });
1342
1336
  }
1343
- console.log("HELLO");
1344
1337
  if (content_placement && content_placement.length > 0) {
1345
- console.log("cpmodificationrequired", cpModificationRequired, content_placement);
1346
1338
  content_placement.filter(function (item) {
1347
1339
  return item.path !== 'news';
1348
1340
  }).forEach(function (cp) {
1349
- console.log("FOR EACH CP", cp);
1350
1341
  if (cp.excludeRelatedContents) {
1351
1342
  return null;
1352
1343
  }
1353
1344
  var cp_url = '' + cp.path;
1354
1345
  try {
1355
- console.log("cp", cp, "CALLED ME");
1356
- ConsoleView.LOG("MODIFICATION REQUIRED", cpModificationRequired);
1357
1346
  cp_url = cpModificationRequired ? getTargeting.getContentPlacementUrl(cp) : cp.ancestor ? cp.parent && cp.path.indexOf('/') < 0 ? cp.ancestor + '/' + cp.parent + '/' + cp.path : !cp.path.indexOf(cp.ancestor) < 0 ? cp.ancestor + '/' + cp.path : '' + cp.path : cp.parent ? !cp.path.indexOf('/') < 0 ? cp.parent + '/' + cp.path : '' + cp.path : '' + cp.path;
1358
1347
  } catch (e) {
1359
1348
  console.log(e.message);
@@ -1362,7 +1351,7 @@ var Article = React__default["default"].memo(React.forwardRef(function (props, r
1362
1351
  relatedLinks = [].concat(toConsumableArray._toConsumableArray(relatedLinks), [{ label: cp.name, href: href }]);
1363
1352
  });
1364
1353
  }
1365
- console.log("relatedLinks 2", relatedLinks);
1354
+
1366
1355
  if (issueGroup && issueGroup.name && issueGroup.identifier && issueGroup.identifier.current && issueGroup.parent && issueGroup.parent.identifier && issueGroup.parent.identifier.current) {
1367
1356
  var _props$Settings$issue = props.Settings.issueMapping,
1368
1357
  issueMapping = _props$Settings$issue === undefined ? '/publications' : _props$Settings$issue;
@@ -1378,7 +1367,7 @@ var Article = React__default["default"].memo(React.forwardRef(function (props, r
1378
1367
  if (relatedLink.href === 'null') return;
1379
1368
  return React__default["default"].createElement(
1380
1369
  'span',
1381
- { key: index, className: 'related-link yes-me' },
1370
+ { key: index, className: 'related-link' },
1382
1371
  React__default["default"].createElement(
1383
1372
  'a',
1384
1373
  { className: 'related-links article', style: { color: 'blue' }, href: relatedLink.href },
@@ -4,7 +4,6 @@ var _extends = require('./extends-be0d85bc.js');
4
4
  var toConsumableArray = require('./toConsumableArray-d7797c2b.js');
5
5
 
6
6
  var getContentPlacementUrl = function getContentPlacementUrl(cp) {
7
- console.log("cp: ", cp);
8
7
  var cp_url = '';
9
8
  if (cp.ancestor && typeof cp.ancestor == 'string') {
10
9
  cp_url += (cp_url === '' ? '' : '/') + cp.ancestor;
@@ -13,9 +12,8 @@ var getContentPlacementUrl = function getContentPlacementUrl(cp) {
13
12
  if (!cp.ancestor && cp.parent && typeof cp.parent == 'string') {
14
13
  cp_url += (cp_url === '' ? '' : '/') + cp.parent;
15
14
  }
16
- console.log("cp_url: ", cp_url);
15
+
17
16
  cp_url += (cp_url === '' ? '' : '/') + (cp.adTargetingURL ? adTargetingURL : cp.path);
18
- console.log("cp_url: 1", cp_url);
19
17
 
20
18
  return cp_url;
21
19
  };
@@ -2,7 +2,7 @@
2
2
 
3
3
  require('./extends-be0d85bc.js');
4
4
  require('./toConsumableArray-d7797c2b.js');
5
- var getTargeting = require('./getTargeting-7ce7037b.js');
5
+ var getTargeting = require('./getTargeting-5b954783.js');
6
6
  require('./_commonjsHelpers-06173234.js');
7
7
  require('./core.get-iterator-method-5643aa10.js');
8
8
  require('./_iter-detect-b1df62f0.js');
package/dist/cjs/index.js CHANGED
@@ -105,7 +105,7 @@ var VideoSeriesLandingPage = require('./VideoSeriesLandingPage.js');
105
105
  var ArticleProgramLandingPage = require('./ArticleProgramLandingPage.js');
106
106
  var ArticleSeriesLandingPage = require('./ArticleSeriesLandingPage.js');
107
107
  var Schema = require('./Schema.js');
108
- var getTargeting = require('./getTargeting-7ce7037b.js');
108
+ var getTargeting = require('./getTargeting-5b954783.js');
109
109
  var getKeywords = require('./getKeywords.js');
110
110
  var getQuery = require('./getQuery.js');
111
111
  require('./typeof-220bbf73.js');
@@ -28,10 +28,12 @@ var Breadcrumbs = function Breadcrumbs(_ref) {
28
28
  setParentPathName = _useState6[1];
29
29
 
30
30
  var get_parent_path = function get_parent_path(parsedUrl) {
31
+ console.log("parsedUrl", parsedUrl);
31
32
  var parent_path = '';
32
- for (var i = 1; i < parsedUrl.length - 3; i++) {
33
- if (parsedUrl.length > i + 1) {
34
- parent_path = '' + parsedUrl[parsedUrl.length - (i + 1)] + (parent_path ? '/' + parent_path : '');
33
+ console.log("======", '' + parsedUrl[parsedUrl.length - (i + 1)] + (parent_path ? '/' + parent_path : ''));
34
+ for (var _i = 1; _i < parsedUrl.length - 3; _i++) {
35
+ if (parsedUrl.length > _i + 1) {
36
+ parent_path = '' + parsedUrl[parsedUrl.length - (_i + 1)] + (parent_path ? '/' + parent_path : '');
35
37
  }
36
38
  }
37
39
 
package/dist/esm/View.js CHANGED
@@ -18,7 +18,7 @@ import SocialShare from './SocialShare.js';
18
18
  import { r as renderAuthor, g as getSerializers } from './index-a68bfe70.js';
19
19
  import DFPAdSlot from './AdSlot.js';
20
20
  import { S as SeriesSlider } from './SeriesSlider-acbdf4c9.js';
21
- import { a as getContentPlacementUrl, g as getTargeting } from './getTargeting-301942ae.js';
21
+ import { a as getContentPlacementUrl, g as getTargeting } from './getTargeting-b62a177c.js';
22
22
  import getKeywords from './getKeywords.js';
23
23
  import urlFor from './urlFor.js';
24
24
  import { u as urlForFile } from './urlForFile-2e523b67.js';
@@ -870,7 +870,6 @@ var RelevantTopics = function RelevantTopics(props) {
870
870
  });
871
871
  }
872
872
  if (content_placement && content_placement.length > 0) {
873
- console.log("content_placement: ", content_placement);
874
873
  content_placement.filter(function (item) {
875
874
  return item.path !== 'news';
876
875
  }).forEach(function (cp) {
@@ -878,7 +877,6 @@ var RelevantTopics = function RelevantTopics(props) {
878
877
  return null;
879
878
  }
880
879
  var cp_url = cpModificationRequired ? getContentPlacementUrl(cp) : cp.path;
881
- console.log("cp_url: ", cp_url);
882
880
  var href = '/' + cp_url;
883
881
  relatedLinks = [].concat(_toConsumableArray(relatedLinks), [{ label: cp.name, href: href }]);
884
882
  });
@@ -889,7 +887,6 @@ var RelevantTopics = function RelevantTopics(props) {
889
887
 
890
888
  relatedLinks = [].concat(_toConsumableArray(relatedLinks), [{ label: issueGroup.name, href: issueMapping + '/' + issueGroup.parent.identifier.current + '/' + issueGroup.identifier.current }]);
891
889
  }
892
- console.log("RELATED LINKS: ", relatedLinks);
893
890
  if (relatedLinks && relatedLinks.length > 0) {
894
891
  return React__default.createElement(
895
892
  'div',
@@ -898,7 +895,7 @@ var RelevantTopics = function RelevantTopics(props) {
898
895
  if (relatedLink && relatedLink.href && relatedLink.label) {
899
896
  return React__default.createElement(
900
897
  'span',
901
- { key: relatedLink.label, className: 'related-link me-too' },
898
+ { key: relatedLink.label, className: 'related-link' },
902
899
  React__default.createElement(
903
900
  'a',
904
901
  { className: 'related-links', style: { color: 'blue' }, href: relatedLink.href },
@@ -1271,8 +1268,6 @@ var Article = React__default.memo(forwardRef(function (props, ref) {
1271
1268
 
1272
1269
  var RelevantTopics = function RelevantTopics() {
1273
1270
  if (content_placement && content_placement.length > 0 || documentGroupMapping && documentGroupMapping.length > 0) {
1274
- console.log("content_placement 1", content_placement);
1275
- console.log("documentGroupMapping 1", documentGroupMapping);
1276
1271
  var relatedLinks = [];
1277
1272
  if (documentGroupMapping && documentGroupMapping.length > 0) {
1278
1273
  documentGroupMapping.forEach(function (documentGroup) {
@@ -1314,7 +1309,6 @@ var Article = React__default.memo(forwardRef(function (props, ref) {
1314
1309
 
1315
1310
  var href = '' + docUrl;
1316
1311
  relatedLinks = [].concat(_toConsumableArray(relatedLinks), [{ label: documentGroup.name, href: href }]);
1317
- console.log("DOC RELATED", relatedLinks);
1318
1312
  // if (documentGroup.parent) {
1319
1313
  // relatedLinks = [
1320
1314
  // ...relatedLinks,
@@ -1330,20 +1324,15 @@ var Article = React__default.memo(forwardRef(function (props, ref) {
1330
1324
  // }
1331
1325
  });
1332
1326
  }
1333
- console.log("HELLO");
1334
1327
  if (content_placement && content_placement.length > 0) {
1335
- console.log("cpmodificationrequired", cpModificationRequired, content_placement);
1336
1328
  content_placement.filter(function (item) {
1337
1329
  return item.path !== 'news';
1338
1330
  }).forEach(function (cp) {
1339
- console.log("FOR EACH CP", cp);
1340
1331
  if (cp.excludeRelatedContents) {
1341
1332
  return null;
1342
1333
  }
1343
1334
  var cp_url = '' + cp.path;
1344
1335
  try {
1345
- console.log("cp", cp, "CALLED ME");
1346
- ConsoleView.LOG("MODIFICATION REQUIRED", cpModificationRequired);
1347
1336
  cp_url = cpModificationRequired ? getContentPlacementUrl(cp) : cp.ancestor ? cp.parent && cp.path.indexOf('/') < 0 ? cp.ancestor + '/' + cp.parent + '/' + cp.path : !cp.path.indexOf(cp.ancestor) < 0 ? cp.ancestor + '/' + cp.path : '' + cp.path : cp.parent ? !cp.path.indexOf('/') < 0 ? cp.parent + '/' + cp.path : '' + cp.path : '' + cp.path;
1348
1337
  } catch (e) {
1349
1338
  console.log(e.message);
@@ -1352,7 +1341,7 @@ var Article = React__default.memo(forwardRef(function (props, ref) {
1352
1341
  relatedLinks = [].concat(_toConsumableArray(relatedLinks), [{ label: cp.name, href: href }]);
1353
1342
  });
1354
1343
  }
1355
- console.log("relatedLinks 2", relatedLinks);
1344
+
1356
1345
  if (issueGroup && issueGroup.name && issueGroup.identifier && issueGroup.identifier.current && issueGroup.parent && issueGroup.parent.identifier && issueGroup.parent.identifier.current) {
1357
1346
  var _props$Settings$issue = props.Settings.issueMapping,
1358
1347
  issueMapping = _props$Settings$issue === undefined ? '/publications' : _props$Settings$issue;
@@ -1368,7 +1357,7 @@ var Article = React__default.memo(forwardRef(function (props, ref) {
1368
1357
  if (relatedLink.href === 'null') return;
1369
1358
  return React__default.createElement(
1370
1359
  'span',
1371
- { key: index, className: 'related-link yes-me' },
1360
+ { key: index, className: 'related-link' },
1372
1361
  React__default.createElement(
1373
1362
  'a',
1374
1363
  { className: 'related-links article', style: { color: 'blue' }, href: relatedLink.href },
@@ -2,7 +2,6 @@ import { _ as _extends } from './extends-2f4448b8.js';
2
2
  import { _ as _toConsumableArray } from './toConsumableArray-e6f28e5c.js';
3
3
 
4
4
  var getContentPlacementUrl = function getContentPlacementUrl(cp) {
5
- console.log("cp: ", cp);
6
5
  var cp_url = '';
7
6
  if (cp.ancestor && typeof cp.ancestor == 'string') {
8
7
  cp_url += (cp_url === '' ? '' : '/') + cp.ancestor;
@@ -11,9 +10,8 @@ var getContentPlacementUrl = function getContentPlacementUrl(cp) {
11
10
  if (!cp.ancestor && cp.parent && typeof cp.parent == 'string') {
12
11
  cp_url += (cp_url === '' ? '' : '/') + cp.parent;
13
12
  }
14
- console.log("cp_url: ", cp_url);
13
+
15
14
  cp_url += (cp_url === '' ? '' : '/') + (cp.adTargetingURL ? adTargetingURL : cp.path);
16
- console.log("cp_url: 1", cp_url);
17
15
 
18
16
  return cp_url;
19
17
  };
@@ -1,6 +1,6 @@
1
1
  import './extends-2f4448b8.js';
2
2
  import './toConsumableArray-e6f28e5c.js';
3
- export { g as default } from './getTargeting-301942ae.js';
3
+ export { g as default } from './getTargeting-b62a177c.js';
4
4
  import './_commonjsHelpers-0c4b6f40.js';
5
5
  import './core.get-iterator-method-95db387d.js';
6
6
  import './_iter-detect-2f89237f.js';
package/dist/esm/index.js CHANGED
@@ -102,7 +102,7 @@ export { default as VideoSeriesLandingPage } from './VideoSeriesLandingPage.js';
102
102
  export { default as ArticleProgramLandingPage } from './ArticleProgramLandingPage.js';
103
103
  export { default as ArticleSeriesLandingPage } from './ArticleSeriesLandingPage.js';
104
104
  export { default as Schema } from './Schema.js';
105
- export { g as getTargeting } from './getTargeting-301942ae.js';
105
+ export { g as getTargeting } from './getTargeting-b62a177c.js';
106
106
  export { default as getKeywords } from './getKeywords.js';
107
107
  export { default as getQuery } from './getQuery.js';
108
108
  import './typeof-3ab7d3b6.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mjhls/mjh-framework",
3
- "version": "1.0.1098.2",
3
+ "version": "1.0.1098.bc",
4
4
  "description": "Foundation Framework",
5
5
  "author": "mjh-framework",
6
6
  "license": "MIT",