@mjhls/mjh-framework 1.0.669 → 1.0.671-beta.0

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.
Files changed (148) hide show
  1. package/README.md +1 -1
  2. package/dist/cjs/AD.js +1 -1
  3. package/dist/cjs/AD300x250.js +3 -3
  4. package/dist/cjs/AD300x250x600.js +3 -3
  5. package/dist/cjs/AD728x90.js +4 -4
  6. package/dist/cjs/ADFloatingFooter.js +2 -2
  7. package/dist/cjs/ADGutter.js +2 -2
  8. package/dist/cjs/ADSkyscraper.js +2 -2
  9. package/dist/cjs/ADSponsoredResources.js +2 -2
  10. package/dist/cjs/ADWebcast.js +2 -2
  11. package/dist/cjs/ADWelcome.js +2 -2
  12. package/dist/cjs/AdSlot.js +2 -2
  13. package/dist/cjs/AdSlotsProvider.js +1 -1
  14. package/dist/cjs/ArticleCarousel.js +3 -5
  15. package/dist/cjs/ArticleSeriesListing.js +4 -6
  16. package/dist/cjs/Auth.js +256 -507
  17. package/dist/cjs/{BlockContent-88f69acd.js → BlockContent-091a991f.js} +1 -1
  18. package/dist/cjs/CMEDeck.js +5 -5
  19. package/dist/cjs/Column3.js +4 -4
  20. package/dist/cjs/ConferenceArticleCard.js +2 -2
  21. package/dist/cjs/DeckContent.js +7 -7
  22. package/dist/cjs/DeckQueue.js +6 -6
  23. package/dist/cjs/{Dfp-b2bc3b97.js → Dfp-f6a18ed2.js} +1 -1
  24. package/dist/cjs/EventsDeck.js +5 -5
  25. package/dist/cjs/ExternalResources.js +7 -7
  26. package/dist/cjs/Feature.js +3 -3
  27. package/dist/cjs/ForbesHero.js +2 -2
  28. package/dist/cjs/GridContent.js +10 -10
  29. package/dist/cjs/GridHero.js +2 -2
  30. package/dist/cjs/GroupDeck.js +1 -1
  31. package/dist/cjs/HamMagazine.js +4 -4
  32. package/dist/cjs/Hero.js +1 -1
  33. package/dist/cjs/HorizontalHero.js +2 -2
  34. package/dist/cjs/IssueContentDeck.js +2 -2
  35. package/dist/cjs/IssueDeck.js +2 -2
  36. package/dist/cjs/IssueLanding.js +7 -7
  37. package/dist/cjs/LeftNav.js +2 -2
  38. package/dist/cjs/MasterDeck.js +8 -8
  39. package/dist/cjs/NavMagazine.js +4 -4
  40. package/dist/cjs/NavNative.js +3 -3
  41. package/dist/cjs/OncliveHero.js +2 -2
  42. package/dist/cjs/OncliveLargeHero.js +2 -2
  43. package/dist/cjs/PartnerDetailListing.js +1212 -15
  44. package/dist/cjs/PublicationDeck.js +1 -1
  45. package/dist/cjs/QueueDeckExpanded.js +9 -9
  46. package/dist/cjs/RecentNews.js +2 -2
  47. package/dist/cjs/RelatedContent.js +2 -2
  48. package/dist/cjs/{SocialSearchComponent-962b1344.js → SocialSearchComponent-81a50f81.js} +5 -5
  49. package/dist/cjs/TaxonomyCard.js +2 -2
  50. package/dist/cjs/TemplateNormal.js +3 -3
  51. package/dist/cjs/ThumbnailCard.js +1 -1
  52. package/dist/cjs/Ustream.js +2 -2
  53. package/dist/cjs/VerticalHero.js +2 -2
  54. package/dist/cjs/VideoSeriesCard.js +2 -2
  55. package/dist/cjs/VideoSeriesListing.js +3 -5
  56. package/dist/cjs/View.js +286 -113
  57. package/dist/cjs/YahooHero.js +2 -2
  58. package/dist/cjs/YoutubeGroup.js +8 -13
  59. package/dist/cjs/getQuery.js +2 -2
  60. package/dist/cjs/getRelatedArticle.js +354 -5
  61. package/dist/cjs/getSerializers.js +6 -6
  62. package/dist/cjs/{getTargeting-fee8c429.js → getTargeting-9af0ef69.js} +2 -2
  63. package/dist/cjs/getTargeting.js +1 -1
  64. package/dist/cjs/{index-94d2f1de.js → index-2dddb8be.js} +450 -462
  65. package/dist/cjs/{index-5be2866f.js → index-3294d3bc.js} +1 -1
  66. package/dist/cjs/index-bd6c9f56.js +211 -0
  67. package/dist/cjs/{index-b5eb3ff8.js → index-be0c82be.js} +19 -20
  68. package/dist/cjs/{index-2d0a4911.js → index-fa8ed292.js} +27 -34
  69. package/dist/cjs/{index.es-ab3f2690.js → index.es-9110add6.js} +1 -3
  70. package/dist/cjs/index.js +15 -16
  71. package/dist/cjs/{main-b6c96c8d.js → main-a4cb15bb.js} +36 -67
  72. package/dist/cjs/{moment-66a6a284.js → moment-575fe24c.js} +1 -1
  73. package/dist/cjs/urlFor.js +1 -1
  74. package/dist/esm/AD.js +1 -1
  75. package/dist/esm/AD300x250.js +3 -3
  76. package/dist/esm/AD300x250x600.js +3 -3
  77. package/dist/esm/AD728x90.js +4 -4
  78. package/dist/esm/ADFloatingFooter.js +2 -2
  79. package/dist/esm/ADGutter.js +2 -2
  80. package/dist/esm/ADSkyscraper.js +2 -2
  81. package/dist/esm/ADSponsoredResources.js +2 -2
  82. package/dist/esm/ADWebcast.js +2 -2
  83. package/dist/esm/ADWelcome.js +2 -2
  84. package/dist/esm/AdSlot.js +2 -2
  85. package/dist/esm/AdSlotsProvider.js +1 -1
  86. package/dist/esm/ArticleCarousel.js +1 -3
  87. package/dist/esm/ArticleSeriesListing.js +4 -6
  88. package/dist/esm/Auth.js +248 -499
  89. package/dist/esm/{BlockContent-a614acdf.js → BlockContent-e9b4ddcf.js} +1 -1
  90. package/dist/esm/CMEDeck.js +5 -5
  91. package/dist/esm/Column3.js +4 -4
  92. package/dist/esm/ConferenceArticleCard.js +2 -2
  93. package/dist/esm/DeckContent.js +7 -7
  94. package/dist/esm/DeckQueue.js +6 -6
  95. package/dist/esm/{Dfp-8a8fca18.js → Dfp-96b49def.js} +1 -1
  96. package/dist/esm/EventsDeck.js +5 -5
  97. package/dist/esm/ExternalResources.js +7 -7
  98. package/dist/esm/Feature.js +3 -3
  99. package/dist/esm/ForbesHero.js +2 -2
  100. package/dist/esm/GridContent.js +10 -10
  101. package/dist/esm/GridHero.js +2 -2
  102. package/dist/esm/GroupDeck.js +1 -1
  103. package/dist/esm/HamMagazine.js +4 -4
  104. package/dist/esm/Hero.js +1 -1
  105. package/dist/esm/HorizontalHero.js +2 -2
  106. package/dist/esm/IssueContentDeck.js +2 -2
  107. package/dist/esm/IssueDeck.js +2 -2
  108. package/dist/esm/IssueLanding.js +7 -7
  109. package/dist/esm/LeftNav.js +2 -2
  110. package/dist/esm/MasterDeck.js +8 -8
  111. package/dist/esm/NavMagazine.js +4 -4
  112. package/dist/esm/NavNative.js +3 -3
  113. package/dist/esm/OncliveHero.js +2 -2
  114. package/dist/esm/OncliveLargeHero.js +2 -2
  115. package/dist/esm/PartnerDetailListing.js +1209 -13
  116. package/dist/esm/PublicationDeck.js +1 -1
  117. package/dist/esm/QueueDeckExpanded.js +9 -9
  118. package/dist/esm/RecentNews.js +2 -2
  119. package/dist/esm/RelatedContent.js +2 -2
  120. package/dist/esm/{SocialSearchComponent-75527dfe.js → SocialSearchComponent-55960ec4.js} +5 -5
  121. package/dist/esm/TaxonomyCard.js +2 -2
  122. package/dist/esm/TemplateNormal.js +3 -3
  123. package/dist/esm/ThumbnailCard.js +1 -1
  124. package/dist/esm/Ustream.js +2 -2
  125. package/dist/esm/VerticalHero.js +2 -2
  126. package/dist/esm/VideoSeriesCard.js +2 -2
  127. package/dist/esm/VideoSeriesListing.js +3 -5
  128. package/dist/esm/View.js +260 -87
  129. package/dist/esm/YahooHero.js +2 -2
  130. package/dist/esm/YoutubeGroup.js +8 -13
  131. package/dist/esm/getQuery.js +2 -2
  132. package/dist/esm/getRelatedArticle.js +354 -5
  133. package/dist/esm/getSerializers.js +6 -6
  134. package/dist/esm/{index-93ec3c59.js → index-0e45a0b2.js} +27 -34
  135. package/dist/esm/{index-1fa94c3a.js → index-2141b8ab.js} +450 -462
  136. package/dist/esm/{index-51a80699.js → index-73819142.js} +19 -20
  137. package/dist/esm/index-db3bb315.js +207 -0
  138. package/dist/esm/{index-d2f90501.js → index-ef6d5dcf.js} +1 -1
  139. package/dist/esm/{index.es-938a3a58.js → index.es-29c1cef5.js} +1 -3
  140. package/dist/esm/index.js +13 -14
  141. package/dist/esm/{main-0465b2a0.js → main-5d1e4bd3.js} +34 -65
  142. package/dist/esm/{moment-12415288.js → moment-e2f9b20c.js} +1 -1
  143. package/dist/esm/urlFor.js +1 -1
  144. package/package.json +1 -1
  145. /package/dist/cjs/{ADInfeed-9735aff2.js → ADInfeed-388ec28a.js} +0 -0
  146. /package/dist/cjs/{ADlgInfeed-6bd11848.js → ADlgInfeed-5548ff47.js} +0 -0
  147. /package/dist/esm/{ADInfeed-9140aa7d.js → ADInfeed-eae0af19.js} +0 -0
  148. /package/dist/esm/{ADlgInfeed-7656ecd1.js → ADlgInfeed-2f4c7a7c.js} +0 -0
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var _commonjsHelpers = require('./_commonjsHelpers-06173234.js');
4
- var moment = require('./moment-66a6a284.js');
4
+ var moment = require('./moment-575fe24c.js');
5
5
 
6
6
  var momentTimezone = _commonjsHelpers.createCommonjsModule(function (module) {
7
7
  //! moment-timezone.js
@@ -0,0 +1,211 @@
1
+ 'use strict';
2
+
3
+ /*!
4
+ * cookie
5
+ * Copyright(c) 2012-2014 Roman Shtylman
6
+ * Copyright(c) 2015 Douglas Christopher Wilson
7
+ * MIT Licensed
8
+ */
9
+
10
+ /**
11
+ * Module exports.
12
+ * @public
13
+ */
14
+
15
+ var parse_1 = parse;
16
+ var serialize_1 = serialize;
17
+
18
+ /**
19
+ * Module variables.
20
+ * @private
21
+ */
22
+
23
+ var decode = decodeURIComponent;
24
+ var encode = encodeURIComponent;
25
+ var pairSplitRegExp = /; */;
26
+
27
+ /**
28
+ * RegExp to match field-content in RFC 7230 sec 3.2
29
+ *
30
+ * field-content = field-vchar [ 1*( SP / HTAB ) field-vchar ]
31
+ * field-vchar = VCHAR / obs-text
32
+ * obs-text = %x80-FF
33
+ */
34
+
35
+ var fieldContentRegExp = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;
36
+
37
+ /**
38
+ * Parse a cookie header.
39
+ *
40
+ * Parse the given cookie header string into an object
41
+ * The object has the various cookies as keys(names) => values
42
+ *
43
+ * @param {string} str
44
+ * @param {object} [options]
45
+ * @return {object}
46
+ * @public
47
+ */
48
+
49
+ function parse(str, options) {
50
+ if (typeof str !== 'string') {
51
+ throw new TypeError('argument str must be a string');
52
+ }
53
+
54
+ var obj = {};
55
+ var opt = options || {};
56
+ var pairs = str.split(pairSplitRegExp);
57
+ var dec = opt.decode || decode;
58
+
59
+ for (var i = 0; i < pairs.length; i++) {
60
+ var pair = pairs[i];
61
+ var eq_idx = pair.indexOf('=');
62
+
63
+ // skip things that don't look like key=value
64
+ if (eq_idx < 0) {
65
+ continue;
66
+ }
67
+
68
+ var key = pair.substr(0, eq_idx).trim();
69
+ var val = pair.substr(++eq_idx, pair.length).trim();
70
+
71
+ // quoted values
72
+ if ('"' == val[0]) {
73
+ val = val.slice(1, -1);
74
+ }
75
+
76
+ // only assign once
77
+ if (undefined == obj[key]) {
78
+ obj[key] = tryDecode(val, dec);
79
+ }
80
+ }
81
+
82
+ return obj;
83
+ }
84
+
85
+ /**
86
+ * Serialize data into a cookie header.
87
+ *
88
+ * Serialize the a name value pair into a cookie string suitable for
89
+ * http headers. An optional options object specified cookie parameters.
90
+ *
91
+ * serialize('foo', 'bar', { httpOnly: true })
92
+ * => "foo=bar; httpOnly"
93
+ *
94
+ * @param {string} name
95
+ * @param {string} val
96
+ * @param {object} [options]
97
+ * @return {string}
98
+ * @public
99
+ */
100
+
101
+ function serialize(name, val, options) {
102
+ var opt = options || {};
103
+ var enc = opt.encode || encode;
104
+
105
+ if (typeof enc !== 'function') {
106
+ throw new TypeError('option encode is invalid');
107
+ }
108
+
109
+ if (!fieldContentRegExp.test(name)) {
110
+ throw new TypeError('argument name is invalid');
111
+ }
112
+
113
+ var value = enc(val);
114
+
115
+ if (value && !fieldContentRegExp.test(value)) {
116
+ throw new TypeError('argument val is invalid');
117
+ }
118
+
119
+ var str = name + '=' + value;
120
+
121
+ if (null != opt.maxAge) {
122
+ var maxAge = opt.maxAge - 0;
123
+
124
+ if (isNaN(maxAge) || !isFinite(maxAge)) {
125
+ throw new TypeError('option maxAge is invalid')
126
+ }
127
+
128
+ str += '; Max-Age=' + Math.floor(maxAge);
129
+ }
130
+
131
+ if (opt.domain) {
132
+ if (!fieldContentRegExp.test(opt.domain)) {
133
+ throw new TypeError('option domain is invalid');
134
+ }
135
+
136
+ str += '; Domain=' + opt.domain;
137
+ }
138
+
139
+ if (opt.path) {
140
+ if (!fieldContentRegExp.test(opt.path)) {
141
+ throw new TypeError('option path is invalid');
142
+ }
143
+
144
+ str += '; Path=' + opt.path;
145
+ }
146
+
147
+ if (opt.expires) {
148
+ if (typeof opt.expires.toUTCString !== 'function') {
149
+ throw new TypeError('option expires is invalid');
150
+ }
151
+
152
+ str += '; Expires=' + opt.expires.toUTCString();
153
+ }
154
+
155
+ if (opt.httpOnly) {
156
+ str += '; HttpOnly';
157
+ }
158
+
159
+ if (opt.secure) {
160
+ str += '; Secure';
161
+ }
162
+
163
+ if (opt.sameSite) {
164
+ var sameSite = typeof opt.sameSite === 'string'
165
+ ? opt.sameSite.toLowerCase() : opt.sameSite;
166
+
167
+ switch (sameSite) {
168
+ case true:
169
+ str += '; SameSite=Strict';
170
+ break;
171
+ case 'lax':
172
+ str += '; SameSite=Lax';
173
+ break;
174
+ case 'strict':
175
+ str += '; SameSite=Strict';
176
+ break;
177
+ case 'none':
178
+ str += '; SameSite=None';
179
+ break;
180
+ default:
181
+ throw new TypeError('option sameSite is invalid');
182
+ }
183
+ }
184
+
185
+ return str;
186
+ }
187
+
188
+ /**
189
+ * Try decoding a string using a decoding function.
190
+ *
191
+ * @param {string} str
192
+ * @param {function} decode
193
+ * @private
194
+ */
195
+
196
+ function tryDecode(str, decode) {
197
+ try {
198
+ return decode(str);
199
+ } catch (e) {
200
+ return str;
201
+ }
202
+ }
203
+
204
+ var cookie = {
205
+ parse: parse_1,
206
+ serialize: serialize_1
207
+ };
208
+
209
+ exports.cookie = cookie;
210
+ exports.parse_1 = parse_1;
211
+ exports.serialize_1 = serialize_1;
@@ -60,35 +60,35 @@ function parseSource(source) {
60
60
  if (typeof source === 'string' && isUrl(source)) {
61
61
  // Someone passed an existing image url?
62
62
  image = {
63
- asset: { _ref: urlToId(source) },
63
+ asset: { _ref: urlToId(source) }
64
64
  };
65
65
  }
66
66
  else if (typeof source === 'string') {
67
67
  // Just an asset id
68
68
  image = {
69
- asset: { _ref: source },
69
+ asset: { _ref: source }
70
70
  };
71
71
  }
72
72
  else if (isRef(source)) {
73
73
  // We just got passed an asset directly
74
74
  image = {
75
- asset: source,
75
+ asset: source
76
76
  };
77
77
  }
78
78
  else if (isAsset(source)) {
79
79
  // If we were passed an image asset document
80
80
  image = {
81
81
  asset: {
82
- _ref: source._id || '',
83
- },
82
+ _ref: source._id || ''
83
+ }
84
84
  };
85
85
  }
86
86
  else if (isAssetStub(source)) {
87
87
  // If we were passed a partial asset (`url`, but no `_id`)
88
88
  image = {
89
89
  asset: {
90
- _ref: urlToId(source.asset.url),
91
- },
90
+ _ref: urlToId(source.asset.url)
91
+ }
92
92
  };
93
93
  }
94
94
  else if (typeof source.asset === 'object') {
@@ -129,7 +129,7 @@ function applyDefaults(image) {
129
129
  left: 0,
130
130
  top: 0,
131
131
  bottom: 0,
132
- right: 0,
132
+ right: 0
133
133
  };
134
134
  }
135
135
  if (!result.hotspot) {
@@ -137,7 +137,7 @@ function applyDefaults(image) {
137
137
  x: 0.5,
138
138
  y: 0.5,
139
139
  height: 1.0,
140
- width: 1.0,
140
+ width: 1.0
141
141
  };
142
142
  }
143
143
  return result;
@@ -184,7 +184,7 @@ exports.SPEC_NAME_TO_URL_NAME_MAPPINGS = [
184
184
  ['crop', 'crop'],
185
185
  ['saturation', 'sat'],
186
186
  ['auto', 'auto'],
187
- ['dpr', 'dpr'],
187
+ ['dpr', 'dpr']
188
188
  ];
189
189
  function urlForImage(options) {
190
190
  var spec = __assign({}, (options || {}));
@@ -203,7 +203,7 @@ function urlForImage(options) {
203
203
  left: cropLeft,
204
204
  top: cropTop,
205
205
  width: Math.round(asset.width - image.crop.right * asset.width - cropLeft),
206
- height: Math.round(asset.height - image.crop.bottom * asset.height - cropTop),
206
+ height: Math.round(asset.height - image.crop.bottom * asset.height - cropTop)
207
207
  };
208
208
  // Compute hot spot rect in terms of pixel coordinates
209
209
  var hotSpotVerticalRadius = (image.hotspot.height * asset.height) / 2;
@@ -214,7 +214,7 @@ function urlForImage(options) {
214
214
  left: hotSpotCenterX - hotSpotHorizontalRadius,
215
215
  top: hotSpotCenterY - hotSpotVerticalRadius,
216
216
  right: hotSpotCenterX + hotSpotHorizontalRadius,
217
- bottom: hotSpotCenterY + hotSpotVerticalRadius,
217
+ bottom: hotSpotCenterY + hotSpotVerticalRadius
218
218
  };
219
219
  // If irrelevant, or if we are requested to: don't perform crop/fit based on
220
220
  // the crop/hotspot.
@@ -296,7 +296,7 @@ function fit(source, spec) {
296
296
  left: Math.round(left),
297
297
  top: Math.round(top_2),
298
298
  width: Math.round(width),
299
- height: Math.round(height),
299
+ height: Math.round(height)
300
300
  };
301
301
  }
302
302
  else {
@@ -318,13 +318,13 @@ function fit(source, spec) {
318
318
  left: Math.max(0, Math.floor(left)),
319
319
  top: Math.max(0, Math.floor(top_3)),
320
320
  width: Math.round(width),
321
- height: Math.round(height),
321
+ height: Math.round(height)
322
322
  };
323
323
  }
324
324
  return {
325
325
  width: imgWidth,
326
326
  height: imgHeight,
327
- rect: cropRect,
327
+ rect: cropRect
328
328
  };
329
329
  }
330
330
 
@@ -377,12 +377,11 @@ function urlBuilder(options) {
377
377
  var client = options;
378
378
  if (isSanityClient(client)) {
379
379
  // Inherit config from client
380
- var _a = client.clientConfig, apiUrl = _a.apiHost, projectId = _a.projectId, dataset = _a.dataset;
381
- var apiHost = apiUrl || 'https://api.sanity.io';
380
+ var _a = client.clientConfig, apiHost = _a.apiHost, projectId = _a.projectId, dataset = _a.dataset;
382
381
  return new ImageUrlBuilder(null, {
383
382
  baseUrl: apiHost.replace(/^https:\/\/api\./, 'https://cdn.'),
384
383
  projectId: projectId,
385
- dataset: dataset,
384
+ dataset: dataset
386
385
  });
387
386
  }
388
387
  // Or just accept the options as given
@@ -395,7 +394,7 @@ var ImageUrlBuilder = /** @class */ (function () {
395
394
  ? __assign(__assign({}, (parent.options || {})), (options || {})) : __assign({}, (options || {})); // Copy options
396
395
  }
397
396
  ImageUrlBuilder.prototype.withOptions = function (options) {
398
- var baseUrl = options.baseUrl || this.options.baseUrl;
397
+ var baseUrl = options.baseUrl || '';
399
398
  var newOptions = { baseUrl: baseUrl };
400
399
  for (var key in options) {
401
400
  if (options.hasOwnProperty(key)) {
@@ -523,7 +522,7 @@ var ImageUrlBuilder = /** @class */ (function () {
523
522
  ImageUrlBuilder.prototype.url = function () {
524
523
  return urlForImage_1$1.default(this.options);
525
524
  };
526
- // Alias for url()
525
+ // Synonym for url()
527
526
  ImageUrlBuilder.prototype.toString = function () {
528
527
  return this.url();
529
528
  };
@@ -728,8 +728,6 @@ var DFPManager = Object.assign(new EventEmitter.EventEmitter().setMaxListeners(0
728
728
 
729
729
  return new Promise(function (resolve) {
730
730
  _this3.getGoogletag().then(function (googletag) {
731
- _this3.configureInitialOptions(googletag);
732
-
733
731
  slotsToInitialize.forEach(function (currentSlotId) {
734
732
  registeredSlots[currentSlotId].loading = false;
735
733
  googletag.cmd.push(function () {
@@ -793,25 +791,14 @@ var DFPManager = Object.assign(new EventEmitter.EventEmitter().setMaxListeners(0
793
791
  });
794
792
  });
795
793
  },
796
- // configure those gpt parameters that need to be set before pubsads service
797
- // initialization.
798
- configureInitialOptions: function configureInitialOptions(googletag) {
799
- var _this4 = this;
800
-
801
- googletag.cmd.push(function () {
802
- if (_this4.disableInitialLoadIsEnabled()) {
803
- googletag.pubads().disableInitialLoad();
804
- }
805
- });
806
- },
807
794
  configureOptions: function configureOptions(googletag) {
808
- var _this5 = this;
795
+ var _this4 = this;
809
796
 
810
797
  googletag.cmd.push(function () {
811
798
  var pubadsService = googletag.pubads();
812
- pubadsService.setRequestNonPersonalizedAds(_this5.personalizedAdsEnabled() ? 0 : 1);
799
+ pubadsService.setRequestNonPersonalizedAds(_this4.personalizedAdsEnabled() ? 0 : 1);
813
800
 
814
- var targetingArguments = _this5.getTargetingArguments(); // set global targetting arguments
801
+ var targetingArguments = _this4.getTargetingArguments(); // set global targetting arguments
815
802
 
816
803
 
817
804
  Object.keys(targetingArguments).forEach(function (varName) {
@@ -820,28 +807,34 @@ var DFPManager = Object.assign(new EventEmitter.EventEmitter().setMaxListeners(0
820
807
  }
821
808
  }); // set global adSense attributes
822
809
 
823
- var adSenseAttributes = _this5.getAdSenseAttributes();
810
+ var adSenseAttributes = _this4.getAdSenseAttributes();
824
811
 
825
812
  Object.keys(adSenseAttributes).forEach(function (key) {
826
813
  pubadsService.set(key, adSenseAttributes[key]);
827
814
  });
828
815
 
829
- if (_this5.lazyLoadIsEnabled()) {
830
- var config = _this5.getLazyLoadConfig();
816
+ if (_this4.lazyLoadIsEnabled()) {
817
+ var args = [];
831
818
 
832
- if (config) {
833
- pubadsService.enableLazyLoad(config);
834
- } else {
835
- pubadsService.enableLazyLoad();
819
+ var config = _this4.getLazyLoadConfig();
820
+
821
+ if (config !== null) {
822
+ args.push(config);
836
823
  }
824
+
825
+ pubadsService.enableLazyLoad.call(args);
837
826
  }
838
827
 
839
- if (_this5.singleRequestIsEnabled()) {
828
+ if (_this4.singleRequestIsEnabled()) {
840
829
  pubadsService.enableSingleRequest();
841
830
  }
842
831
 
843
- if (_this5.collapseEmptyDivs === true || _this5.collapseEmptyDivs === false) {
844
- pubadsService.collapseEmptyDivs(_this5.collapseEmptyDivs);
832
+ if (_this4.disableInitialLoadIsEnabled()) {
833
+ pubadsService.disableInitialLoad();
834
+ }
835
+
836
+ if (_this4.collapseEmptyDivs === true || _this4.collapseEmptyDivs === false) {
837
+ pubadsService.collapseEmptyDivs(_this4.collapseEmptyDivs);
845
838
  }
846
839
  });
847
840
  },
@@ -883,10 +876,10 @@ var DFPManager = Object.assign(new EventEmitter.EventEmitter().setMaxListeners(0
883
876
  }
884
877
  },
885
878
  gptRefreshAds: function gptRefreshAds(slots) {
886
- var _this6 = this;
879
+ var _this5 = this;
887
880
 
888
881
  return this.getGoogletag().then(function (googletag) {
889
- _this6.configureOptions(googletag);
882
+ _this5.configureOptions(googletag);
890
883
 
891
884
  googletag.cmd.push(function () {
892
885
  var pubadsService = googletag.pubads();
@@ -897,14 +890,14 @@ var DFPManager = Object.assign(new EventEmitter.EventEmitter().setMaxListeners(0
897
890
  });
898
891
  },
899
892
  reload: function reload() {
900
- var _this7 = this;
893
+ var _this6 = this;
901
894
 
902
895
  return this.destroyGPTSlots.apply(this, arguments).then(function () {
903
- return _this7.load();
896
+ return _this6.load();
904
897
  });
905
898
  },
906
899
  destroyGPTSlots: function destroyGPTSlots() {
907
- var _this8 = this;
900
+ var _this7 = this;
908
901
 
909
902
  for (var _len4 = arguments.length, slotsToDestroy = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
910
903
  slotsToDestroy[_key4] = arguments[_key4];
@@ -924,7 +917,7 @@ var DFPManager = Object.assign(new EventEmitter.EventEmitter().setMaxListeners(0
924
917
  slots.push(slot);
925
918
  }
926
919
 
927
- _this8.getGoogletag().then(function (googletag) {
920
+ _this7.getGoogletag().then(function (googletag) {
928
921
  googletag.cmd.push(function () {
929
922
  if (managerAlreadyInitialized === true) {
930
923
  if (slotsToDestroy.length > 0) {
@@ -947,7 +940,7 @@ var DFPManager = Object.assign(new EventEmitter.EventEmitter().setMaxListeners(0
947
940
  });
948
941
  },
949
942
  registerSlot: function registerSlot(_ref) {
950
- var _this9 = this;
943
+ var _this8 = this;
951
944
 
952
945
  var slotId = _ref.slotId,
953
946
  dfpNetworkId = _ref.dfpNetworkId,
@@ -986,7 +979,7 @@ var DFPManager = Object.assign(new EventEmitter.EventEmitter().setMaxListeners(0
986
979
  gptSlot = slot.gptSlot;
987
980
 
988
981
  if (loading === false && !gptSlot) {
989
- _this9.load(slotId);
982
+ _this8.load(slotId);
990
983
  }
991
984
  }
992
985
  });
@@ -268,9 +268,6 @@ var InfiniteScroll = /** @class */ (function (_super) {
268
268
  _this.dragging = false;
269
269
  if (_this.state.pullToRefreshThresholdBreached) {
270
270
  _this.props.refreshFunction && _this.props.refreshFunction();
271
- _this.setState({
272
- pullToRefreshThresholdBreached: false,
273
- });
274
271
  }
275
272
  requestAnimationFrame(function () {
276
273
  // this._infScroll
@@ -377,6 +374,7 @@ var InfiniteScroll = /** @class */ (function (_super) {
377
374
  // update state when new data was sent in
378
375
  this.setState({
379
376
  showLoader: false,
377
+ pullToRefreshThresholdBreached: false,
380
378
  });
381
379
  };
382
380
  InfiniteScroll.prototype.isElementAtBottom = function (target, scrollThreshold) {
package/dist/cjs/index.js CHANGED
@@ -18,22 +18,22 @@ require('./web.dom.iterable-a0e279c1.js');
18
18
  require('./typeof-725500bc.js');
19
19
  require('./_is-array-754e012d.js');
20
20
  require('react');
21
- require('./index-2d0a4911.js');
21
+ require('./index-fa8ed292.js');
22
22
  require('prop-types');
23
23
  require('react-bootstrap/Container');
24
24
  require('react-bootstrap/Row');
25
25
  require('react-bootstrap/Col');
26
26
  require('react-bootstrap/Card');
27
- require('./moment-66a6a284.js');
27
+ require('./moment-575fe24c.js');
28
28
  require('next/router');
29
29
  require('./isSymbol-04666465.js');
30
30
  require('./debounce-eb287781.js');
31
- require('./index.es-ab3f2690.js');
31
+ require('./index.es-9110add6.js');
32
32
  require('react-dom');
33
33
  require('./visibility-sensor-0c45a583.js');
34
- require('./index-b5eb3ff8.js');
34
+ require('./index-be0c82be.js');
35
35
  require('./index-da796b8c.js');
36
- require('./main-b6c96c8d.js');
36
+ require('./main-a4cb15bb.js');
37
37
  require('./entities-310b46ee.js');
38
38
  require('./stringify-7c5aff47.js');
39
39
  require('./slicedToArray-8f385299.js');
@@ -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-9735aff2.js');
44
+ require('./ADInfeed-388ec28a.js');
45
45
  var DeckContent = require('./DeckContent.js');
46
46
  require('./lodash-fc2922d0.js');
47
- require('./ADlgInfeed-6bd11848.js');
47
+ require('./ADlgInfeed-5548ff47.js');
48
48
  require('./getContentCategory-f38a4c00.js');
49
49
  require('./get-68c52cb1.js');
50
50
  var AD = require('./AD.js');
@@ -53,7 +53,7 @@ var GridContent = require('./GridContent.js');
53
53
  var DeckQueue = require('./DeckQueue.js');
54
54
  require('react-bootstrap/Media');
55
55
  var ThumbnailCard = require('./ThumbnailCard.js');
56
- require('./BlockContent-88f69acd.js');
56
+ require('./BlockContent-091a991f.js');
57
57
  require('./react-social-icons-f7f48f71.js');
58
58
  var TaxonomyCard = require('./TaxonomyCard.js');
59
59
  var RolesDeck = require('./RolesDeck.js');
@@ -76,10 +76,10 @@ require('./defineProperty-55548b25.js');
76
76
  var EventsDeck = require('./EventsDeck.js');
77
77
  require('react-bootstrap/Spinner');
78
78
  require('react-bootstrap/Form');
79
- require('./index-5be2866f.js');
79
+ require('./index-3294d3bc.js');
80
80
  require('./js.cookie-a511c430.js');
81
81
  var CMEDeck = require('./CMEDeck.js');
82
- var getSerializers = require('./index-94d2f1de.js');
82
+ var getSerializers = require('./index-2dddb8be.js');
83
83
  require('./util-f2c1b65b.js');
84
84
  require('./brightcove-react-player-loader.es-156bd4d6.js');
85
85
  require('react-bootstrap/Pagination');
@@ -110,7 +110,7 @@ require('./NavFooter-76c913e3.js');
110
110
  require('./index.esm-fe549f9c.js');
111
111
  var SocialIcons = require('./SocialIcons.js');
112
112
  require('react-bootstrap/FormControl');
113
- require('./SocialSearchComponent-962b1344.js');
113
+ require('./SocialSearchComponent-81a50f81.js');
114
114
  var NavMagazine = require('./NavMagazine.js');
115
115
  var NavNative = require('./NavNative.js');
116
116
  var Search = require('./Search.js');
@@ -157,19 +157,18 @@ var ConferenceArticleCard = require('./ConferenceArticleCard.js');
157
157
  var KMTracker = require('./KMTracker.js');
158
158
  var getSeriesDetail = require('./getSeriesDetail.js');
159
159
  var SetCookie = require('./SetCookie.js');
160
- require('nookies');
161
- var getQuery = require('./getQuery.js');
160
+ require('./index-bd6c9f56.js');
162
161
  var getRelatedArticle = require('./getRelatedArticle.js');
162
+ var getQuery = require('./getQuery.js');
163
163
  var Auth = require('./Auth.js');
164
164
  require('swr');
165
165
  require('passport-local');
166
166
  require('mysql');
167
- var getTargeting = require('./getTargeting-fee8c429.js');
167
+ var getTargeting = require('./getTargeting-9af0ef69.js');
168
168
  var View = require('./View.js');
169
169
  var getKeywords = require('./getKeywords.js');
170
170
  var urlFor = require('./urlFor.js');
171
171
  require('./style-inject.es-dcee06b6.js');
172
- require('react-twitter-embed');
173
172
  var PartnerDetailListing = require('./PartnerDetailListing.js');
174
173
 
175
174
 
@@ -249,8 +248,8 @@ exports.ConferenceArticleCard = ConferenceArticleCard;
249
248
  exports.KMTracker = KMTracker;
250
249
  exports.getSeriesDetail = getSeriesDetail;
251
250
  exports.SetCookie = SetCookie;
252
- exports.getQuery = getQuery;
253
251
  exports.getRelatedArticle = getRelatedArticle;
252
+ exports.getQuery = getQuery;
254
253
  exports.Auth = Auth.default;
255
254
  exports.getTargeting = getTargeting.getTargeting;
256
255
  exports.View = View;