@mjhls/mjh-framework 1.0.325 → 1.0.326

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.325
2
+ # mjh-framework v. 1.0.326
3
3
 
4
4
  > Foundation Framework
5
5
 
@@ -1795,7 +1795,9 @@ var AD728x90 = function AD728x90(_ref) {
1795
1795
  document_group: targeting.document_group,
1796
1796
  document_url: targeting.document_url,
1797
1797
  pos: pos,
1798
- campaign_id: targeting.campaign_id
1798
+ campaign_id: targeting.campaign_id,
1799
+ issue_url: targeting.issue_url,
1800
+ publication_url: targeting.publication_url
1799
1801
  };
1800
1802
 
1801
1803
  var adRef = React.useRef(null);
@@ -19,7 +19,7 @@ require('./react-social-icons-cd0d9d3b.js');
19
19
  require('react-bootstrap');
20
20
  require('./index.esm-340d3792.js');
21
21
  require('react-bootstrap/Button');
22
- var TemplateNormal = require('./Normal-e7423a52.js');
22
+ var TemplateNormal = require('./Normal-c85aee96.js');
23
23
  require('react-bootstrap/ListGroup');
24
24
  require('next/head');
25
25
  require('react-bootstrap/Nav');
package/dist/cjs/index.js CHANGED
@@ -53,7 +53,7 @@ var IssueDeck = require('./IssueDeck.js');
53
53
  require('react-bootstrap/Badge');
54
54
  var IssueContentDeck = require('./IssueContentDeck.js');
55
55
  var Spinner = _interopDefault(require('react-bootstrap/Spinner'));
56
- var TemplateNormal = require('./Normal-e7423a52.js');
56
+ var TemplateNormal = require('./Normal-c85aee96.js');
57
57
  require('react-bootstrap/ListGroup');
58
58
  var Head = _interopDefault(require('next/head'));
59
59
  var Accordion = _interopDefault(require('react-bootstrap/Accordion'));
@@ -2844,7 +2844,9 @@ var AD300x250 = function AD300x250(_ref) {
2844
2844
  document_group: targeting.document_group,
2845
2845
  document_url: targeting.document_url,
2846
2846
  pos: pos,
2847
- campaign_id: targeting.campaign_id
2847
+ campaign_id: targeting.campaign_id,
2848
+ issue_url: targeting.issue_url,
2849
+ publication_url: targeting.publication_url
2848
2850
  };
2849
2851
 
2850
2852
  var browserSizes = [[300, 250], [300, 100]];
@@ -2874,7 +2876,9 @@ var AD300x250x600 = function AD300x250x600(_ref) {
2874
2876
  document_group: targeting.document_group,
2875
2877
  document_url: targeting.document_url,
2876
2878
  pos: pos,
2877
- campaign_id: targeting.campaign_id
2879
+ campaign_id: targeting.campaign_id,
2880
+ issue_url: targeting.issue_url,
2881
+ publication_url: targeting.publication_url
2878
2882
  };
2879
2883
 
2880
2884
  var browserSizes = [[300, 250], [300, 600], [300, 100]];
@@ -2954,7 +2958,9 @@ var ADFloatingFooter = function ADFloatingFooter(_ref) {
2954
2958
  document_group: targeting.document_group,
2955
2959
  document_url: targeting.document_url,
2956
2960
  pos: position,
2957
- campaign_id: targeting.campaign_id
2961
+ campaign_id: targeting.campaign_id,
2962
+ issue_url: targeting.issue_url,
2963
+ publication_url: targeting.publication_url
2958
2964
  };
2959
2965
 
2960
2966
  var _useState = React.useState(true),
@@ -3037,7 +3043,9 @@ var ADGutter = function ADGutter(_ref) {
3037
3043
  document_group: targeting.document_group,
3038
3044
  document_url: targeting.document_url,
3039
3045
  pos: position,
3040
- campaign_id: targeting.campaign_id
3046
+ campaign_id: targeting.campaign_id,
3047
+ issue_url: targeting.issue_url,
3048
+ publication_url: targeting.publication_url
3041
3049
  };
3042
3050
 
3043
3051
  var _useState = React.useState(false),
@@ -3095,7 +3103,9 @@ var ADWelcome = function ADWelcome(_ref) {
3095
3103
  document_group: targeting.document_group,
3096
3104
  document_url: targeting.document_url,
3097
3105
  pos: position,
3098
- campaign_id: targeting.campaign_id
3106
+ campaign_id: targeting.campaign_id,
3107
+ issue_url: targeting.issue_url,
3108
+ publication_url: targeting.publication_url
3099
3109
  };
3100
3110
 
3101
3111
  var calculateTimeLeft = function calculateTimeLeft(timeLeft) {
@@ -3204,7 +3214,9 @@ var ADSponsoredResources = function ADSponsoredResources(_ref) {
3204
3214
  document_group: targeting.document_group,
3205
3215
  document_url: targeting.document_url,
3206
3216
  pos: position,
3207
- campaign_id: targeting.campaign_id
3217
+ campaign_id: targeting.campaign_id,
3218
+ issue_url: targeting.issue_url,
3219
+ publication_url: targeting.publication_url
3208
3220
  };
3209
3221
 
3210
3222
  return React__default.createElement(
@@ -16647,6 +16659,14 @@ var ArticleQueue = function ArticleQueue(props) {
16647
16659
  document_url: [url],
16648
16660
  content_placement: content_placement_urls
16649
16661
  };
16662
+
16663
+ if (article.issue && article.issue.path) {
16664
+ targeting.issue_url = [article.issue.path];
16665
+ if (article.issue.publication && article.issue.publication.path) {
16666
+ targeting.publication_url = [article.issue.publication.path];
16667
+ }
16668
+ }
16669
+
16650
16670
  return targeting;
16651
16671
  };
16652
16672
 
@@ -1790,7 +1790,9 @@ var AD728x90 = function AD728x90(_ref) {
1790
1790
  document_group: targeting.document_group,
1791
1791
  document_url: targeting.document_url,
1792
1792
  pos: pos,
1793
- campaign_id: targeting.campaign_id
1793
+ campaign_id: targeting.campaign_id,
1794
+ issue_url: targeting.issue_url,
1795
+ publication_url: targeting.publication_url
1794
1796
  };
1795
1797
 
1796
1798
  var adRef = useRef(null);
@@ -17,7 +17,7 @@ import './react-social-icons-a7d5c5c7.js';
17
17
  import 'react-bootstrap';
18
18
  import './index.esm-536609db.js';
19
19
  import 'react-bootstrap/Button';
20
- export { T as default } from './Normal-ff7a10ab.js';
20
+ export { T as default } from './Normal-cbddc3c0.js';
21
21
  import 'react-bootstrap/ListGroup';
22
22
  import 'next/head';
23
23
  import 'react-bootstrap/Nav';
package/dist/esm/index.js CHANGED
@@ -48,8 +48,8 @@ export { default as IssueDeck } from './IssueDeck.js';
48
48
  import 'react-bootstrap/Badge';
49
49
  export { default as IssueContentDeck } from './IssueContentDeck.js';
50
50
  import Spinner from 'react-bootstrap/Spinner';
51
- import { M as MdPictureAsPdf } from './Normal-ff7a10ab.js';
52
- export { A as AD728x90, C as Column1, a as Column2, b as Column3, f as HamMagazine, H as Header, L as LeftNav, e as NavDvm, c as NavMagazine, N as NavNative, d as NavNormal, P as PageFilter, S as Search, g as SideFooter, T as TemplateNormal } from './Normal-ff7a10ab.js';
51
+ import { M as MdPictureAsPdf } from './Normal-cbddc3c0.js';
52
+ export { A as AD728x90, C as Column1, a as Column2, b as Column3, f as HamMagazine, H as Header, L as LeftNav, e as NavDvm, c as NavMagazine, N as NavNative, d as NavNormal, P as PageFilter, S as Search, g as SideFooter, T as TemplateNormal } from './Normal-cbddc3c0.js';
53
53
  import 'react-bootstrap/ListGroup';
54
54
  import Head from 'next/head';
55
55
  import Accordion from 'react-bootstrap/Accordion';
@@ -2841,7 +2841,9 @@ var AD300x250 = function AD300x250(_ref) {
2841
2841
  document_group: targeting.document_group,
2842
2842
  document_url: targeting.document_url,
2843
2843
  pos: pos,
2844
- campaign_id: targeting.campaign_id
2844
+ campaign_id: targeting.campaign_id,
2845
+ issue_url: targeting.issue_url,
2846
+ publication_url: targeting.publication_url
2845
2847
  };
2846
2848
 
2847
2849
  var browserSizes = [[300, 250], [300, 100]];
@@ -2871,7 +2873,9 @@ var AD300x250x600 = function AD300x250x600(_ref) {
2871
2873
  document_group: targeting.document_group,
2872
2874
  document_url: targeting.document_url,
2873
2875
  pos: pos,
2874
- campaign_id: targeting.campaign_id
2876
+ campaign_id: targeting.campaign_id,
2877
+ issue_url: targeting.issue_url,
2878
+ publication_url: targeting.publication_url
2875
2879
  };
2876
2880
 
2877
2881
  var browserSizes = [[300, 250], [300, 600], [300, 100]];
@@ -2951,7 +2955,9 @@ var ADFloatingFooter = function ADFloatingFooter(_ref) {
2951
2955
  document_group: targeting.document_group,
2952
2956
  document_url: targeting.document_url,
2953
2957
  pos: position,
2954
- campaign_id: targeting.campaign_id
2958
+ campaign_id: targeting.campaign_id,
2959
+ issue_url: targeting.issue_url,
2960
+ publication_url: targeting.publication_url
2955
2961
  };
2956
2962
 
2957
2963
  var _useState = useState(true),
@@ -3034,7 +3040,9 @@ var ADGutter = function ADGutter(_ref) {
3034
3040
  document_group: targeting.document_group,
3035
3041
  document_url: targeting.document_url,
3036
3042
  pos: position,
3037
- campaign_id: targeting.campaign_id
3043
+ campaign_id: targeting.campaign_id,
3044
+ issue_url: targeting.issue_url,
3045
+ publication_url: targeting.publication_url
3038
3046
  };
3039
3047
 
3040
3048
  var _useState = useState(false),
@@ -3092,7 +3100,9 @@ var ADWelcome = function ADWelcome(_ref) {
3092
3100
  document_group: targeting.document_group,
3093
3101
  document_url: targeting.document_url,
3094
3102
  pos: position,
3095
- campaign_id: targeting.campaign_id
3103
+ campaign_id: targeting.campaign_id,
3104
+ issue_url: targeting.issue_url,
3105
+ publication_url: targeting.publication_url
3096
3106
  };
3097
3107
 
3098
3108
  var calculateTimeLeft = function calculateTimeLeft(timeLeft) {
@@ -3201,7 +3211,9 @@ var ADSponsoredResources = function ADSponsoredResources(_ref) {
3201
3211
  document_group: targeting.document_group,
3202
3212
  document_url: targeting.document_url,
3203
3213
  pos: position,
3204
- campaign_id: targeting.campaign_id
3214
+ campaign_id: targeting.campaign_id,
3215
+ issue_url: targeting.issue_url,
3216
+ publication_url: targeting.publication_url
3205
3217
  };
3206
3218
 
3207
3219
  return React__default.createElement(
@@ -16644,6 +16656,14 @@ var ArticleQueue = function ArticleQueue(props) {
16644
16656
  document_url: [url],
16645
16657
  content_placement: content_placement_urls
16646
16658
  };
16659
+
16660
+ if (article.issue && article.issue.path) {
16661
+ targeting.issue_url = [article.issue.path];
16662
+ if (article.issue.publication && article.issue.publication.path) {
16663
+ targeting.publication_url = [article.issue.publication.path];
16664
+ }
16665
+ }
16666
+
16647
16667
  return targeting;
16648
16668
  };
16649
16669
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mjhls/mjh-framework",
3
- "version": "1.0.325",
3
+ "version": "1.0.326",
4
4
  "description": "Foundation Framework",
5
5
  "author": "mjh-framework",
6
6
  "license": "MIT",