@mjhls/mjh-framework 1.0.663 → 1.0.664

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.663
2
+ # mjh-framework v. 1.0.664
3
3
 
4
4
  > Foundation Framework
5
5
 
@@ -17,7 +17,7 @@ require('./isSymbol-04666465.js');
17
17
  require('./debounce-eb287781.js');
18
18
  var main = require('./main-b6c96c8d.js');
19
19
  var stringify = require('./stringify-7c5aff47.js');
20
- require('./slicedToArray-8f385299.js');
20
+ var slicedToArray = require('./slicedToArray-8f385299.js');
21
21
  require('./asyncToGenerator-533d476a.js');
22
22
  require('./_set-species-f92c67c5.js');
23
23
  require('./beam-7217b7e7.js');
@@ -40,6 +40,19 @@ var AD300x250 = function AD300x250(_ref) {
40
40
  mobileView = true;
41
41
  }
42
42
 
43
+ var _useState = React.useState(true),
44
+ _useState2 = slicedToArray._slicedToArray(_useState, 2),
45
+ previewAd = _useState2[0],
46
+ setPreviewAd = _useState2[1];
47
+
48
+ React.useEffect(function () {
49
+ var path = window && window.location && window.location.search;
50
+ // Setting flag for Ad-preview URLs
51
+ setPreviewAd(path.split('&').some(function (param) {
52
+ return param.includes('creativeId');
53
+ }));
54
+ }, []);
55
+
43
56
  var adTargeting = {
44
57
  content_placement: targeting.content_placement,
45
58
  tags: targeting.tags,
@@ -109,8 +122,8 @@ var AD300x250 = function AD300x250(_ref) {
109
122
  targeting: adTargeting,
110
123
  className: 'AD300x250',
111
124
  sizes: mobileView ? mobileSizes : browserSizes
112
- /* Passing function to check for ad creative */
113
- , checkIsAdFound: checkIsAdFound,
125
+ /* Passing function to check for ad creative only if it is not in preview. */
126
+ , checkIsAdFound: previewAd ? null : checkIsAdFound,
114
127
  style: { display: 'none' }
115
128
  }),
116
129
  React__default.createElement(
@@ -85,7 +85,7 @@ var DFPAdSlot = function DFPAdSlot(_ref) {
85
85
  },
86
86
  onSlotRender: function onSlotRender(eventData) {
87
87
  // Updating the condition to remove the dependency on static slotId.
88
- if (eventData && eventData.event && checkIsAdFound) {
88
+ if (eventData && eventData.event && checkIsAdFound !== null) {
89
89
  if (eventData.event.creativeId == null) {
90
90
  checkIsAdFound(false, eventData);
91
91
  } else {
@@ -43,7 +43,7 @@ require('./asyncToGenerator-533d476a.js');
43
43
  require('./_set-species-f92c67c5.js');
44
44
  require('./beam-7217b7e7.js');
45
45
  require('./AdSlot.js');
46
- var ADInfeed = require('./ADInfeed-eaa6c661.js');
46
+ var ADInfeed = require('./ADInfeed-9735aff2.js');
47
47
 
48
48
  var DeckContent = function (_React$Component) {
49
49
  inherits._inherits(DeckContent, _React$Component);
@@ -45,7 +45,7 @@ require('./GroupDeck.js');
45
45
  require('react-bootstrap');
46
46
  var Button = _interopDefault(require('react-bootstrap/Button'));
47
47
  var index$3 = require('./index-5be2866f.js');
48
- var getSerializers = require('./index-2831c002.js');
48
+ var getSerializers = require('./index-6f1ee5f0.js');
49
49
  require('./util-f2c1b65b.js');
50
50
  require('./brightcove-react-player-loader.es-156bd4d6.js');
51
51
  require('react-bootstrap/Pagination');
@@ -43,9 +43,9 @@ require('./asyncToGenerator-533d476a.js');
43
43
  require('./_set-species-f92c67c5.js');
44
44
  require('./beam-7217b7e7.js');
45
45
  require('./AdSlot.js');
46
- var ADInfeed = require('./ADInfeed-eaa6c661.js');
46
+ var ADInfeed = require('./ADInfeed-9735aff2.js');
47
47
  var lodash = require('./lodash-fc2922d0.js');
48
- var ADlgInfeed = require('./ADlgInfeed-f25eb4f7.js');
48
+ var ADlgInfeed = require('./ADlgInfeed-6bd11848.js');
49
49
  var getContentCategory = require('./getContentCategory-f38a4c00.js');
50
50
  var get = require('./get-68c52cb1.js');
51
51
  require('./AD.js');
@@ -34,9 +34,9 @@ require('./asyncToGenerator-533d476a.js');
34
34
  require('./_set-species-f92c67c5.js');
35
35
  require('./beam-7217b7e7.js');
36
36
  require('./AdSlot.js');
37
- require('./ADInfeed-eaa6c661.js');
37
+ require('./ADInfeed-9735aff2.js');
38
38
  require('./lodash-fc2922d0.js');
39
- require('./ADlgInfeed-f25eb4f7.js');
39
+ require('./ADlgInfeed-6bd11848.js');
40
40
  require('./getContentCategory-f38a4c00.js');
41
41
  require('./AuthorComponent-bb831b74.js');
42
42
  require('react-bootstrap');
@@ -41,9 +41,9 @@ var asyncToGenerator = require('./asyncToGenerator-533d476a.js');
41
41
  require('./_set-species-f92c67c5.js');
42
42
  require('./beam-7217b7e7.js');
43
43
  require('./AdSlot.js');
44
- var ADInfeed = require('./ADInfeed-eaa6c661.js');
44
+ var ADInfeed = require('./ADInfeed-9735aff2.js');
45
45
  var lodash = require('./lodash-fc2922d0.js');
46
- var ADlgInfeed = require('./ADlgInfeed-f25eb4f7.js');
46
+ var ADlgInfeed = require('./ADlgInfeed-6bd11848.js');
47
47
 
48
48
  var MasterDeck = function (_React$Component) {
49
49
  inherits._inherits(MasterDeck, _React$Component);
@@ -41,9 +41,9 @@ var asyncToGenerator = require('./asyncToGenerator-533d476a.js');
41
41
  require('./_set-species-f92c67c5.js');
42
42
  require('./beam-7217b7e7.js');
43
43
  require('./AdSlot.js');
44
- require('./ADInfeed-eaa6c661.js');
44
+ require('./ADInfeed-9735aff2.js');
45
45
  require('./lodash-fc2922d0.js');
46
- require('./ADlgInfeed-f25eb4f7.js');
46
+ require('./ADlgInfeed-6bd11848.js');
47
47
  require('./getContentCategory-f38a4c00.js');
48
48
  require('./AuthorComponent-bb831b74.js');
49
49
  var BlockContent = require('./BlockContent-88f69acd.js');
@@ -52,7 +52,7 @@ require('./GroupDeck.js');
52
52
  require('react-bootstrap');
53
53
  var QueueDeckExpanded = require('./QueueDeckExpanded.js');
54
54
  require('react-bootstrap/Button');
55
- var getSerializers = require('./index-2831c002.js');
55
+ var getSerializers = require('./index-6f1ee5f0.js');
56
56
  require('./util-f2c1b65b.js');
57
57
  require('./brightcove-react-player-loader.es-156bd4d6.js');
58
58
  require('react-bootstrap/Pagination');
@@ -35,9 +35,9 @@ require('./asyncToGenerator-533d476a.js');
35
35
  require('./_set-species-f92c67c5.js');
36
36
  require('./beam-7217b7e7.js');
37
37
  require('./AdSlot.js');
38
- var ADInfeed = require('./ADInfeed-eaa6c661.js');
38
+ var ADInfeed = require('./ADInfeed-9735aff2.js');
39
39
  var lodash = require('./lodash-fc2922d0.js');
40
- var ADlgInfeed = require('./ADlgInfeed-f25eb4f7.js');
40
+ var ADlgInfeed = require('./ADlgInfeed-6bd11848.js');
41
41
  var getContentCategory = require('./getContentCategory-f38a4c00.js');
42
42
  var AuthorComponent = require('./AuthorComponent-bb831b74.js');
43
43
  var reactBootstrap = require('react-bootstrap');
package/dist/cjs/View.js CHANGED
@@ -47,7 +47,7 @@ require('react-bootstrap');
47
47
  var Button = _interopDefault(require('react-bootstrap/Button'));
48
48
  var defineProperty$1 = require('./defineProperty-55548b25.js');
49
49
  var Form = _interopDefault(require('react-bootstrap/Form'));
50
- var getSerializers = require('./index-2831c002.js');
50
+ var getSerializers = require('./index-6f1ee5f0.js');
51
51
  require('./util-f2c1b65b.js');
52
52
  require('./brightcove-react-player-loader.es-156bd4d6.js');
53
53
  require('react-bootstrap/Pagination');
@@ -40,7 +40,7 @@ require('./smoothscroll-95231a70.js');
40
40
  require('./GroupDeck.js');
41
41
  require('react-bootstrap');
42
42
  require('react-bootstrap/Button');
43
- var getSerializers = require('./index-2831c002.js');
43
+ var getSerializers = require('./index-6f1ee5f0.js');
44
44
  require('./util-f2c1b65b.js');
45
45
  require('./brightcove-react-player-loader.es-156bd4d6.js');
46
46
  require('react-bootstrap/Pagination');
package/dist/cjs/index.js CHANGED
@@ -41,10 +41,10 @@ require('./asyncToGenerator-533d476a.js');
41
41
  require('./_set-species-f92c67c5.js');
42
42
  var Segment = require('./beam-7217b7e7.js');
43
43
  var AdSlot = require('./AdSlot.js');
44
- require('./ADInfeed-eaa6c661.js');
44
+ require('./ADInfeed-9735aff2.js');
45
45
  var DeckContent = require('./DeckContent.js');
46
46
  require('./lodash-fc2922d0.js');
47
- require('./ADlgInfeed-f25eb4f7.js');
47
+ require('./ADlgInfeed-6bd11848.js');
48
48
  require('./getContentCategory-f38a4c00.js');
49
49
  require('./get-68c52cb1.js');
50
50
  var AD = require('./AD.js');
@@ -79,7 +79,7 @@ require('react-bootstrap/Form');
79
79
  require('./index-5be2866f.js');
80
80
  require('./js.cookie-a511c430.js');
81
81
  var CMEDeck = require('./CMEDeck.js');
82
- var getSerializers = require('./index-2831c002.js');
82
+ var getSerializers = require('./index-6f1ee5f0.js');
83
83
  require('./util-f2c1b65b.js');
84
84
  require('./brightcove-react-player-loader.es-156bd4d6.js');
85
85
  require('react-bootstrap/Pagination');
@@ -5,14 +5,14 @@ import './_library-528f1934.js';
5
5
  import './_iter-detect-59409a32.js';
6
6
  import './core.get-iterator-method-54d2e411.js';
7
7
  import './web.dom.iterable-8956f9a5.js';
8
- import React__default from 'react';
8
+ import React__default, { useState, useEffect } from 'react';
9
9
  import './index-93ec3c59.js';
10
10
  import 'prop-types';
11
11
  import './isSymbol-807e927e.js';
12
12
  import './debounce-1a993acf.js';
13
13
  import { m as main_39 } from './main-0465b2a0.js';
14
14
  import { _ as _JSON$stringify } from './stringify-008c8802.js';
15
- import './slicedToArray-7021e5df.js';
15
+ import { _ as _slicedToArray } from './slicedToArray-7021e5df.js';
16
16
  import './asyncToGenerator-7c654f36.js';
17
17
  import './_set-species-cede29f8.js';
18
18
  import './beam-681a9749.js';
@@ -35,6 +35,19 @@ var AD300x250 = function AD300x250(_ref) {
35
35
  mobileView = true;
36
36
  }
37
37
 
38
+ var _useState = useState(true),
39
+ _useState2 = _slicedToArray(_useState, 2),
40
+ previewAd = _useState2[0],
41
+ setPreviewAd = _useState2[1];
42
+
43
+ useEffect(function () {
44
+ var path = window && window.location && window.location.search;
45
+ // Setting flag for Ad-preview URLs
46
+ setPreviewAd(path.split('&').some(function (param) {
47
+ return param.includes('creativeId');
48
+ }));
49
+ }, []);
50
+
38
51
  var adTargeting = {
39
52
  content_placement: targeting.content_placement,
40
53
  tags: targeting.tags,
@@ -104,8 +117,8 @@ var AD300x250 = function AD300x250(_ref) {
104
117
  targeting: adTargeting,
105
118
  className: 'AD300x250',
106
119
  sizes: mobileView ? mobileSizes : browserSizes
107
- /* Passing function to check for ad creative */
108
- , checkIsAdFound: checkIsAdFound,
120
+ /* Passing function to check for ad creative only if it is not in preview. */
121
+ , checkIsAdFound: previewAd ? null : checkIsAdFound,
109
122
  style: { display: 'none' }
110
123
  }),
111
124
  React__default.createElement(
@@ -79,7 +79,7 @@ var DFPAdSlot = function DFPAdSlot(_ref) {
79
79
  },
80
80
  onSlotRender: function onSlotRender(eventData) {
81
81
  // Updating the condition to remove the dependency on static slotId.
82
- if (eventData && eventData.event && checkIsAdFound) {
82
+ if (eventData && eventData.event && checkIsAdFound !== null) {
83
83
  if (eventData.event.creativeId == null) {
84
84
  checkIsAdFound(false, eventData);
85
85
  } else {
@@ -37,7 +37,7 @@ import './asyncToGenerator-7c654f36.js';
37
37
  import './_set-species-cede29f8.js';
38
38
  import './beam-681a9749.js';
39
39
  import './AdSlot.js';
40
- import { A as ADInfeed } from './ADInfeed-c27997a3.js';
40
+ import { A as ADInfeed } from './ADInfeed-9140aa7d.js';
41
41
 
42
42
  var DeckContent = function (_React$Component) {
43
43
  _inherits(DeckContent, _React$Component);
@@ -39,7 +39,7 @@ import './GroupDeck.js';
39
39
  import 'react-bootstrap';
40
40
  import Button from 'react-bootstrap/Button';
41
41
  import { m as momentTimezone } from './index-d2f90501.js';
42
- import { g as getSerializers } from './index-e2a6c2d0.js';
42
+ import { g as getSerializers } from './index-3a33f7d6.js';
43
43
  import './util-7700fc59.js';
44
44
  import './brightcove-react-player-loader.es-83f53e4e.js';
45
45
  import 'react-bootstrap/Pagination';
@@ -37,9 +37,9 @@ import './asyncToGenerator-7c654f36.js';
37
37
  import './_set-species-cede29f8.js';
38
38
  import './beam-681a9749.js';
39
39
  import './AdSlot.js';
40
- import { A as ADInfeed } from './ADInfeed-c27997a3.js';
40
+ import { A as ADInfeed } from './ADInfeed-9140aa7d.js';
41
41
  import { l as lodash } from './lodash-17fdfebb.js';
42
- import { A as ADlgInfeed } from './ADlgInfeed-41c3909c.js';
42
+ import { A as ADlgInfeed } from './ADlgInfeed-7656ecd1.js';
43
43
  import { g as getContentCategory } from './getContentCategory-15dcc413.js';
44
44
  import { g as get_1 } from './get-5ee14cda.js';
45
45
  import './AD.js';
@@ -29,9 +29,9 @@ import './asyncToGenerator-7c654f36.js';
29
29
  import './_set-species-cede29f8.js';
30
30
  import './beam-681a9749.js';
31
31
  import './AdSlot.js';
32
- import './ADInfeed-c27997a3.js';
32
+ import './ADInfeed-9140aa7d.js';
33
33
  import './lodash-17fdfebb.js';
34
- import './ADlgInfeed-41c3909c.js';
34
+ import './ADlgInfeed-7656ecd1.js';
35
35
  import './getContentCategory-15dcc413.js';
36
36
  import './AuthorComponent-00f13201.js';
37
37
  import 'react-bootstrap';
@@ -35,9 +35,9 @@ import { _ as _Promise } from './asyncToGenerator-7c654f36.js';
35
35
  import './_set-species-cede29f8.js';
36
36
  import './beam-681a9749.js';
37
37
  import './AdSlot.js';
38
- import { A as ADInfeed } from './ADInfeed-c27997a3.js';
38
+ import { A as ADInfeed } from './ADInfeed-9140aa7d.js';
39
39
  import { l as lodash } from './lodash-17fdfebb.js';
40
- import { A as ADlgInfeed } from './ADlgInfeed-41c3909c.js';
40
+ import { A as ADlgInfeed } from './ADlgInfeed-7656ecd1.js';
41
41
 
42
42
  var MasterDeck = function (_React$Component) {
43
43
  _inherits(MasterDeck, _React$Component);
@@ -36,9 +36,9 @@ import { a as _asyncToGenerator, r as regenerator, _ as _Promise } from './async
36
36
  import './_set-species-cede29f8.js';
37
37
  import './beam-681a9749.js';
38
38
  import './AdSlot.js';
39
- import './ADInfeed-c27997a3.js';
39
+ import './ADInfeed-9140aa7d.js';
40
40
  import './lodash-17fdfebb.js';
41
- import './ADlgInfeed-41c3909c.js';
41
+ import './ADlgInfeed-7656ecd1.js';
42
42
  import './getContentCategory-15dcc413.js';
43
43
  import './AuthorComponent-00f13201.js';
44
44
  import { B as BlockContent } from './BlockContent-a614acdf.js';
@@ -47,7 +47,7 @@ import './GroupDeck.js';
47
47
  import 'react-bootstrap';
48
48
  import QueueDeckExpanded from './QueueDeckExpanded.js';
49
49
  import 'react-bootstrap/Button';
50
- import { g as getSerializers } from './index-e2a6c2d0.js';
50
+ import { g as getSerializers } from './index-3a33f7d6.js';
51
51
  import './util-7700fc59.js';
52
52
  import './brightcove-react-player-loader.es-83f53e4e.js';
53
53
  import 'react-bootstrap/Pagination';
@@ -29,9 +29,9 @@ import './asyncToGenerator-7c654f36.js';
29
29
  import './_set-species-cede29f8.js';
30
30
  import './beam-681a9749.js';
31
31
  import './AdSlot.js';
32
- import { A as ADInfeed } from './ADInfeed-c27997a3.js';
32
+ import { A as ADInfeed } from './ADInfeed-9140aa7d.js';
33
33
  import { l as lodash } from './lodash-17fdfebb.js';
34
- import { A as ADlgInfeed } from './ADlgInfeed-41c3909c.js';
34
+ import { A as ADlgInfeed } from './ADlgInfeed-7656ecd1.js';
35
35
  import { g as getContentCategory } from './getContentCategory-15dcc413.js';
36
36
  import { A as AuthorComponent } from './AuthorComponent-00f13201.js';
37
37
  import { Container, Media } from 'react-bootstrap';
package/dist/esm/View.js CHANGED
@@ -41,7 +41,7 @@ import 'react-bootstrap';
41
41
  import Button from 'react-bootstrap/Button';
42
42
  import { _ as _defineProperty } from './defineProperty-b798470d.js';
43
43
  import Form from 'react-bootstrap/Form';
44
- import { I as InscreenSensor, r as renderAuthor, g as getSerializers } from './index-e2a6c2d0.js';
44
+ import { I as InscreenSensor, r as renderAuthor, g as getSerializers } from './index-3a33f7d6.js';
45
45
  import './util-7700fc59.js';
46
46
  import './brightcove-react-player-loader.es-83f53e4e.js';
47
47
  import 'react-bootstrap/Pagination';
@@ -38,7 +38,7 @@ import './smoothscroll-4b699764.js';
38
38
  import './GroupDeck.js';
39
39
  import 'react-bootstrap';
40
40
  import 'react-bootstrap/Button';
41
- export { g as default } from './index-e2a6c2d0.js';
41
+ export { g as default } from './index-3a33f7d6.js';
42
42
  import './util-7700fc59.js';
43
43
  import './brightcove-react-player-loader.es-83f53e4e.js';
44
44
  import 'react-bootstrap/Pagination';
package/dist/esm/index.js CHANGED
@@ -37,10 +37,10 @@ import './asyncToGenerator-7c654f36.js';
37
37
  import './_set-species-cede29f8.js';
38
38
  export { B as Beam, S as Segment } from './beam-681a9749.js';
39
39
  export { default as AdSlot } from './AdSlot.js';
40
- import './ADInfeed-c27997a3.js';
40
+ import './ADInfeed-9140aa7d.js';
41
41
  export { default as DeckContent } from './DeckContent.js';
42
42
  import './lodash-17fdfebb.js';
43
- import './ADlgInfeed-41c3909c.js';
43
+ import './ADlgInfeed-7656ecd1.js';
44
44
  import './getContentCategory-15dcc413.js';
45
45
  import './get-5ee14cda.js';
46
46
  export { default as AD } from './AD.js';
@@ -75,7 +75,7 @@ import 'react-bootstrap/Form';
75
75
  import './index-d2f90501.js';
76
76
  import './js.cookie-6874175c.js';
77
77
  export { default as CMEDeck } from './CMEDeck.js';
78
- export { g as getSerializers } from './index-e2a6c2d0.js';
78
+ export { g as getSerializers } from './index-3a33f7d6.js';
79
79
  import './util-7700fc59.js';
80
80
  import './brightcove-react-player-loader.es-83f53e4e.js';
81
81
  import 'react-bootstrap/Pagination';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mjhls/mjh-framework",
3
- "version": "1.0.663",
3
+ "version": "1.0.664",
4
4
  "description": "Foundation Framework",
5
5
  "author": "mjh-framework",
6
6
  "license": "MIT",