@mjhls/mjh-framework 1.0.535 → 1.0.537
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 +172 -172
- package/dist/cjs/AD.js +1 -1
- package/dist/cjs/AD300x250.js +3 -3
- package/dist/cjs/AD300x250x600.js +3 -3
- package/dist/cjs/AD728x90.js +4 -4
- package/dist/cjs/ADFloatingFooter.js +5 -5
- package/dist/cjs/ADGutter.js +2 -2
- package/dist/cjs/ADSponsoredResources.js +2 -2
- package/dist/cjs/ADWebcast.js +2 -2
- package/dist/cjs/ADWelcome.js +2 -2
- package/dist/cjs/AdSlot.js +2 -2
- package/dist/cjs/AdSlotsProvider.js +1 -1
- package/dist/cjs/ArticleQueue.js +10 -10
- package/dist/cjs/Auth.js +256 -507
- package/dist/cjs/{BlockContent-f942392e.js → BlockContent-77f81ffc.js} +1 -1
- package/dist/cjs/CMEDeck.js +5 -5
- package/dist/cjs/Column3.js +4 -4
- package/dist/cjs/ConferenceArticleCard.js +17 -17
- package/dist/cjs/DeckContent.js +15 -15
- package/dist/cjs/DeckQueue.js +6 -6
- package/dist/cjs/{Dfp-fbe32b96.js → Dfp-fcdeabc4.js} +1 -1
- package/dist/cjs/EventsDeck.js +22 -22
- package/dist/cjs/ExternalResources.js +6 -6
- package/dist/cjs/Feature.js +3 -3
- package/dist/cjs/ForbesHero.js +2 -2
- package/dist/cjs/GridContent.js +10 -10
- package/dist/cjs/GridHero.js +2 -2
- package/dist/cjs/GroupDeck.js +5 -5
- package/dist/cjs/HamMagazine.js +11 -11
- package/dist/cjs/Hero.js +1 -1
- package/dist/cjs/HorizontalHero.js +2 -2
- package/dist/cjs/IssueContentDeck.js +2 -2
- package/dist/cjs/IssueDeck.js +2 -2
- package/dist/cjs/IssueLanding.js +36 -36
- package/dist/cjs/KMTracker.js +15 -15
- package/dist/cjs/LeftNav.js +2 -2
- package/dist/cjs/MasterDeck.js +16 -16
- package/dist/cjs/NavMagazine.js +12 -12
- package/dist/cjs/NavNative.js +11 -11
- package/dist/cjs/OncliveHero.js +2 -2
- package/dist/cjs/OncliveLargeHero.js +2 -2
- package/dist/cjs/PartnerDetailListing.js +1210 -14
- package/dist/cjs/PublicationDeck.js +1 -1
- package/dist/cjs/PublicationLanding.js +33 -33
- package/dist/cjs/QueueDeckExpanded.js +9 -9
- package/dist/cjs/RelatedContent.js +30 -30
- package/dist/cjs/RelatedTopicsDropdown.js +10 -10
- package/dist/cjs/SideFooter.js +2 -2
- package/dist/cjs/TaxonomyCard.js +2 -2
- package/dist/cjs/TemplateNormal.js +2 -2
- package/dist/cjs/ThumbnailCard.js +1 -1
- package/dist/cjs/Ustream.js +2 -2
- package/dist/cjs/VerticalHero.js +2 -2
- package/dist/cjs/VideoSeriesFilter.js +1 -1
- package/dist/cjs/VideoSeriesListing.js +4 -4
- package/dist/cjs/View.js +38 -38
- package/dist/cjs/YahooHero.js +2 -2
- package/dist/cjs/YoutubeGroup.js +5 -5
- package/dist/cjs/getQuery.js +1 -1
- package/dist/cjs/getRelatedArticle.js +355 -6
- package/dist/cjs/getSerializers.js +437 -449
- package/dist/cjs/{getTargeting-b15993cb.js → getTargeting-3d208b98.js} +11 -11
- package/dist/cjs/getTargeting.js +1 -1
- package/dist/cjs/{index-5be2866f.js → index-3294d3bc.js} +1 -1
- package/dist/cjs/index-bd6c9f56.js +211 -0
- package/dist/cjs/{index-b5eb3ff8.js → index-be0c82be.js} +19 -20
- package/dist/cjs/{index-f7ee1612.js → index-fa3cec70.js} +6 -4
- package/dist/cjs/{index.es-ab3f2690.js → index.es-9110add6.js} +1 -3
- package/dist/cjs/index.js +13 -14
- package/dist/cjs/{main-bc4db521.js → main-88348b15.js} +35 -66
- package/dist/cjs/{moment-66a6a284.js → moment-575fe24c.js} +1 -1
- package/dist/cjs/urlFor.js +2 -2
- package/dist/esm/AD.js +1 -1
- package/dist/esm/AD300x250.js +3 -3
- package/dist/esm/AD300x250x600.js +3 -3
- package/dist/esm/AD728x90.js +4 -4
- package/dist/esm/ADFloatingFooter.js +5 -5
- package/dist/esm/ADGutter.js +2 -2
- package/dist/esm/ADSponsoredResources.js +2 -2
- package/dist/esm/ADWebcast.js +2 -2
- package/dist/esm/ADWelcome.js +2 -2
- package/dist/esm/AdSlot.js +2 -2
- package/dist/esm/AdSlotsProvider.js +1 -1
- package/dist/esm/ArticleQueue.js +10 -10
- package/dist/esm/Auth.js +248 -499
- package/dist/esm/{BlockContent-a614acdf.js → BlockContent-e9b4ddcf.js} +1 -1
- package/dist/esm/CMEDeck.js +5 -5
- package/dist/esm/Column3.js +4 -4
- package/dist/esm/ConferenceArticleCard.js +17 -17
- package/dist/esm/DeckContent.js +15 -15
- package/dist/esm/DeckQueue.js +6 -6
- package/dist/esm/{Dfp-ae9336e2.js → Dfp-81a052c2.js} +1 -1
- package/dist/esm/EventsDeck.js +22 -22
- package/dist/esm/ExternalResources.js +6 -6
- package/dist/esm/Feature.js +3 -3
- package/dist/esm/ForbesHero.js +2 -2
- package/dist/esm/GridContent.js +10 -10
- package/dist/esm/GridHero.js +2 -2
- package/dist/esm/GroupDeck.js +5 -5
- package/dist/esm/HamMagazine.js +11 -11
- package/dist/esm/Hero.js +1 -1
- package/dist/esm/HorizontalHero.js +2 -2
- package/dist/esm/IssueContentDeck.js +2 -2
- package/dist/esm/IssueDeck.js +2 -2
- package/dist/esm/IssueLanding.js +36 -36
- package/dist/esm/KMTracker.js +15 -15
- package/dist/esm/LeftNav.js +2 -2
- package/dist/esm/MasterDeck.js +16 -16
- package/dist/esm/NavMagazine.js +12 -12
- package/dist/esm/NavNative.js +11 -11
- package/dist/esm/OncliveHero.js +2 -2
- package/dist/esm/OncliveLargeHero.js +2 -2
- package/dist/esm/PartnerDetailListing.js +1208 -12
- package/dist/esm/PublicationDeck.js +1 -1
- package/dist/esm/PublicationLanding.js +33 -33
- package/dist/esm/QueueDeckExpanded.js +9 -9
- package/dist/esm/RelatedContent.js +30 -30
- package/dist/esm/RelatedTopicsDropdown.js +10 -10
- package/dist/esm/SideFooter.js +2 -2
- package/dist/esm/TaxonomyCard.js +2 -2
- package/dist/esm/TemplateNormal.js +2 -2
- package/dist/esm/ThumbnailCard.js +1 -1
- package/dist/esm/Ustream.js +2 -2
- package/dist/esm/VerticalHero.js +2 -2
- package/dist/esm/VideoSeriesFilter.js +1 -1
- package/dist/esm/VideoSeriesListing.js +4 -4
- package/dist/esm/View.js +13 -13
- package/dist/esm/YahooHero.js +2 -2
- package/dist/esm/YoutubeGroup.js +5 -5
- package/dist/esm/getQuery.js +1 -1
- package/dist/esm/getRelatedArticle.js +355 -6
- package/dist/esm/getSerializers.js +437 -449
- package/dist/esm/{getTargeting-1a0bd08d.js → getTargeting-1f2c61e3.js} +9 -9
- package/dist/esm/getTargeting.js +1 -1
- package/dist/esm/{index-93ec3c59.js → index-3f4dd6f2.js} +6 -4
- package/dist/esm/{index-51a80699.js → index-73819142.js} +19 -20
- package/dist/esm/index-db3bb315.js +207 -0
- package/dist/esm/{index-d2f90501.js → index-ef6d5dcf.js} +1 -1
- package/dist/esm/{index.es-938a3a58.js → index.es-29c1cef5.js} +1 -3
- package/dist/esm/index.js +12 -13
- package/dist/esm/{main-7255814e.js → main-d7ee6151.js} +34 -65
- package/dist/esm/{moment-12415288.js → moment-e2f9b20c.js} +1 -1
- package/dist/esm/urlFor.js +2 -2
- package/package.json +107 -107
- /package/dist/cjs/{ADInfeed-3404200f.js → ADInfeed-d8e47444.js} +0 -0
- /package/dist/cjs/{ADlgInfeed-2611e1a9.js → ADlgInfeed-947c3a47.js} +0 -0
- /package/dist/esm/{ADInfeed-27674dc6.js → ADInfeed-2eb234ae.js} +0 -0
- /package/dist/esm/{ADlgInfeed-43060a77.js → ADlgInfeed-17c13711.js} +0 -0
|
@@ -2,18 +2,18 @@ import { _ as _toConsumableArray } from './toConsumableArray-8712d678.js';
|
|
|
2
2
|
import { _ as _extends } from './extends-6e00b262.js';
|
|
3
3
|
|
|
4
4
|
var getContentPlacementUrl = function getContentPlacementUrl(cp) {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
var cp_url = '';
|
|
6
|
+
if (cp.ancestor && typeof cp.ancestor == 'string') {
|
|
7
|
+
cp_url += (cp_url === '' ? '' : '/') + cp.ancestor;
|
|
8
|
+
}
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
if (!cp.ancestor && cp.parent && typeof cp.parent == 'string') {
|
|
11
|
+
cp_url += (cp_url === '' ? '' : '/') + cp.parent;
|
|
12
|
+
}
|
|
13
13
|
|
|
14
|
-
|
|
14
|
+
cp_url += (cp_url === '' ? '' : '/') + cp.path;
|
|
15
15
|
|
|
16
|
-
|
|
16
|
+
return cp_url;
|
|
17
17
|
};
|
|
18
18
|
|
|
19
19
|
var getTargeting = function getTargeting(props) {
|
package/dist/esm/getTargeting.js
CHANGED
|
@@ -821,13 +821,15 @@ var DFPManager = Object.assign(new EventEmitter.EventEmitter().setMaxListeners(0
|
|
|
821
821
|
});
|
|
822
822
|
|
|
823
823
|
if (_this5.lazyLoadIsEnabled()) {
|
|
824
|
+
var args = [];
|
|
825
|
+
|
|
824
826
|
var config = _this5.getLazyLoadConfig();
|
|
825
827
|
|
|
826
|
-
if (config) {
|
|
827
|
-
|
|
828
|
-
} else {
|
|
829
|
-
pubadsService.enableLazyLoad();
|
|
828
|
+
if (config !== null) {
|
|
829
|
+
args.push(config);
|
|
830
830
|
}
|
|
831
|
+
|
|
832
|
+
pubadsService.enableLazyLoad.call(args);
|
|
831
833
|
}
|
|
832
834
|
|
|
833
835
|
if (_this5.singleRequestIsEnabled()) {
|
|
@@ -58,35 +58,35 @@ function parseSource(source) {
|
|
|
58
58
|
if (typeof source === 'string' && isUrl(source)) {
|
|
59
59
|
// Someone passed an existing image url?
|
|
60
60
|
image = {
|
|
61
|
-
asset: { _ref: urlToId(source) }
|
|
61
|
+
asset: { _ref: urlToId(source) }
|
|
62
62
|
};
|
|
63
63
|
}
|
|
64
64
|
else if (typeof source === 'string') {
|
|
65
65
|
// Just an asset id
|
|
66
66
|
image = {
|
|
67
|
-
asset: { _ref: source }
|
|
67
|
+
asset: { _ref: source }
|
|
68
68
|
};
|
|
69
69
|
}
|
|
70
70
|
else if (isRef(source)) {
|
|
71
71
|
// We just got passed an asset directly
|
|
72
72
|
image = {
|
|
73
|
-
asset: source
|
|
73
|
+
asset: source
|
|
74
74
|
};
|
|
75
75
|
}
|
|
76
76
|
else if (isAsset(source)) {
|
|
77
77
|
// If we were passed an image asset document
|
|
78
78
|
image = {
|
|
79
79
|
asset: {
|
|
80
|
-
_ref: source._id || ''
|
|
81
|
-
}
|
|
80
|
+
_ref: source._id || ''
|
|
81
|
+
}
|
|
82
82
|
};
|
|
83
83
|
}
|
|
84
84
|
else if (isAssetStub(source)) {
|
|
85
85
|
// If we were passed a partial asset (`url`, but no `_id`)
|
|
86
86
|
image = {
|
|
87
87
|
asset: {
|
|
88
|
-
_ref: urlToId(source.asset.url)
|
|
89
|
-
}
|
|
88
|
+
_ref: urlToId(source.asset.url)
|
|
89
|
+
}
|
|
90
90
|
};
|
|
91
91
|
}
|
|
92
92
|
else if (typeof source.asset === 'object') {
|
|
@@ -127,7 +127,7 @@ function applyDefaults(image) {
|
|
|
127
127
|
left: 0,
|
|
128
128
|
top: 0,
|
|
129
129
|
bottom: 0,
|
|
130
|
-
right: 0
|
|
130
|
+
right: 0
|
|
131
131
|
};
|
|
132
132
|
}
|
|
133
133
|
if (!result.hotspot) {
|
|
@@ -135,7 +135,7 @@ function applyDefaults(image) {
|
|
|
135
135
|
x: 0.5,
|
|
136
136
|
y: 0.5,
|
|
137
137
|
height: 1.0,
|
|
138
|
-
width: 1.0
|
|
138
|
+
width: 1.0
|
|
139
139
|
};
|
|
140
140
|
}
|
|
141
141
|
return result;
|
|
@@ -182,7 +182,7 @@ exports.SPEC_NAME_TO_URL_NAME_MAPPINGS = [
|
|
|
182
182
|
['crop', 'crop'],
|
|
183
183
|
['saturation', 'sat'],
|
|
184
184
|
['auto', 'auto'],
|
|
185
|
-
['dpr', 'dpr']
|
|
185
|
+
['dpr', 'dpr']
|
|
186
186
|
];
|
|
187
187
|
function urlForImage(options) {
|
|
188
188
|
var spec = __assign({}, (options || {}));
|
|
@@ -201,7 +201,7 @@ function urlForImage(options) {
|
|
|
201
201
|
left: cropLeft,
|
|
202
202
|
top: cropTop,
|
|
203
203
|
width: Math.round(asset.width - image.crop.right * asset.width - cropLeft),
|
|
204
|
-
height: Math.round(asset.height - image.crop.bottom * asset.height - cropTop)
|
|
204
|
+
height: Math.round(asset.height - image.crop.bottom * asset.height - cropTop)
|
|
205
205
|
};
|
|
206
206
|
// Compute hot spot rect in terms of pixel coordinates
|
|
207
207
|
var hotSpotVerticalRadius = (image.hotspot.height * asset.height) / 2;
|
|
@@ -212,7 +212,7 @@ function urlForImage(options) {
|
|
|
212
212
|
left: hotSpotCenterX - hotSpotHorizontalRadius,
|
|
213
213
|
top: hotSpotCenterY - hotSpotVerticalRadius,
|
|
214
214
|
right: hotSpotCenterX + hotSpotHorizontalRadius,
|
|
215
|
-
bottom: hotSpotCenterY + hotSpotVerticalRadius
|
|
215
|
+
bottom: hotSpotCenterY + hotSpotVerticalRadius
|
|
216
216
|
};
|
|
217
217
|
// If irrelevant, or if we are requested to: don't perform crop/fit based on
|
|
218
218
|
// the crop/hotspot.
|
|
@@ -294,7 +294,7 @@ function fit(source, spec) {
|
|
|
294
294
|
left: Math.round(left),
|
|
295
295
|
top: Math.round(top_2),
|
|
296
296
|
width: Math.round(width),
|
|
297
|
-
height: Math.round(height)
|
|
297
|
+
height: Math.round(height)
|
|
298
298
|
};
|
|
299
299
|
}
|
|
300
300
|
else {
|
|
@@ -316,13 +316,13 @@ function fit(source, spec) {
|
|
|
316
316
|
left: Math.max(0, Math.floor(left)),
|
|
317
317
|
top: Math.max(0, Math.floor(top_3)),
|
|
318
318
|
width: Math.round(width),
|
|
319
|
-
height: Math.round(height)
|
|
319
|
+
height: Math.round(height)
|
|
320
320
|
};
|
|
321
321
|
}
|
|
322
322
|
return {
|
|
323
323
|
width: imgWidth,
|
|
324
324
|
height: imgHeight,
|
|
325
|
-
rect: cropRect
|
|
325
|
+
rect: cropRect
|
|
326
326
|
};
|
|
327
327
|
}
|
|
328
328
|
|
|
@@ -375,12 +375,11 @@ function urlBuilder(options) {
|
|
|
375
375
|
var client = options;
|
|
376
376
|
if (isSanityClient(client)) {
|
|
377
377
|
// Inherit config from client
|
|
378
|
-
var _a = client.clientConfig,
|
|
379
|
-
var apiHost = apiUrl || 'https://api.sanity.io';
|
|
378
|
+
var _a = client.clientConfig, apiHost = _a.apiHost, projectId = _a.projectId, dataset = _a.dataset;
|
|
380
379
|
return new ImageUrlBuilder(null, {
|
|
381
380
|
baseUrl: apiHost.replace(/^https:\/\/api\./, 'https://cdn.'),
|
|
382
381
|
projectId: projectId,
|
|
383
|
-
dataset: dataset
|
|
382
|
+
dataset: dataset
|
|
384
383
|
});
|
|
385
384
|
}
|
|
386
385
|
// Or just accept the options as given
|
|
@@ -393,7 +392,7 @@ var ImageUrlBuilder = /** @class */ (function () {
|
|
|
393
392
|
? __assign(__assign({}, (parent.options || {})), (options || {})) : __assign({}, (options || {})); // Copy options
|
|
394
393
|
}
|
|
395
394
|
ImageUrlBuilder.prototype.withOptions = function (options) {
|
|
396
|
-
var baseUrl = options.baseUrl ||
|
|
395
|
+
var baseUrl = options.baseUrl || '';
|
|
397
396
|
var newOptions = { baseUrl: baseUrl };
|
|
398
397
|
for (var key in options) {
|
|
399
398
|
if (options.hasOwnProperty(key)) {
|
|
@@ -521,7 +520,7 @@ var ImageUrlBuilder = /** @class */ (function () {
|
|
|
521
520
|
ImageUrlBuilder.prototype.url = function () {
|
|
522
521
|
return urlForImage_1$1.default(this.options);
|
|
523
522
|
};
|
|
524
|
-
//
|
|
523
|
+
// Synonym for url()
|
|
525
524
|
ImageUrlBuilder.prototype.toString = function () {
|
|
526
525
|
return this.url();
|
|
527
526
|
};
|
|
@@ -0,0 +1,207 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* cookie
|
|
3
|
+
* Copyright(c) 2012-2014 Roman Shtylman
|
|
4
|
+
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
5
|
+
* MIT Licensed
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Module exports.
|
|
10
|
+
* @public
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
var parse_1 = parse;
|
|
14
|
+
var serialize_1 = serialize;
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Module variables.
|
|
18
|
+
* @private
|
|
19
|
+
*/
|
|
20
|
+
|
|
21
|
+
var decode = decodeURIComponent;
|
|
22
|
+
var encode = encodeURIComponent;
|
|
23
|
+
var pairSplitRegExp = /; */;
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* RegExp to match field-content in RFC 7230 sec 3.2
|
|
27
|
+
*
|
|
28
|
+
* field-content = field-vchar [ 1*( SP / HTAB ) field-vchar ]
|
|
29
|
+
* field-vchar = VCHAR / obs-text
|
|
30
|
+
* obs-text = %x80-FF
|
|
31
|
+
*/
|
|
32
|
+
|
|
33
|
+
var fieldContentRegExp = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Parse a cookie header.
|
|
37
|
+
*
|
|
38
|
+
* Parse the given cookie header string into an object
|
|
39
|
+
* The object has the various cookies as keys(names) => values
|
|
40
|
+
*
|
|
41
|
+
* @param {string} str
|
|
42
|
+
* @param {object} [options]
|
|
43
|
+
* @return {object}
|
|
44
|
+
* @public
|
|
45
|
+
*/
|
|
46
|
+
|
|
47
|
+
function parse(str, options) {
|
|
48
|
+
if (typeof str !== 'string') {
|
|
49
|
+
throw new TypeError('argument str must be a string');
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
var obj = {};
|
|
53
|
+
var opt = options || {};
|
|
54
|
+
var pairs = str.split(pairSplitRegExp);
|
|
55
|
+
var dec = opt.decode || decode;
|
|
56
|
+
|
|
57
|
+
for (var i = 0; i < pairs.length; i++) {
|
|
58
|
+
var pair = pairs[i];
|
|
59
|
+
var eq_idx = pair.indexOf('=');
|
|
60
|
+
|
|
61
|
+
// skip things that don't look like key=value
|
|
62
|
+
if (eq_idx < 0) {
|
|
63
|
+
continue;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
var key = pair.substr(0, eq_idx).trim();
|
|
67
|
+
var val = pair.substr(++eq_idx, pair.length).trim();
|
|
68
|
+
|
|
69
|
+
// quoted values
|
|
70
|
+
if ('"' == val[0]) {
|
|
71
|
+
val = val.slice(1, -1);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
// only assign once
|
|
75
|
+
if (undefined == obj[key]) {
|
|
76
|
+
obj[key] = tryDecode(val, dec);
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
return obj;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* Serialize data into a cookie header.
|
|
85
|
+
*
|
|
86
|
+
* Serialize the a name value pair into a cookie string suitable for
|
|
87
|
+
* http headers. An optional options object specified cookie parameters.
|
|
88
|
+
*
|
|
89
|
+
* serialize('foo', 'bar', { httpOnly: true })
|
|
90
|
+
* => "foo=bar; httpOnly"
|
|
91
|
+
*
|
|
92
|
+
* @param {string} name
|
|
93
|
+
* @param {string} val
|
|
94
|
+
* @param {object} [options]
|
|
95
|
+
* @return {string}
|
|
96
|
+
* @public
|
|
97
|
+
*/
|
|
98
|
+
|
|
99
|
+
function serialize(name, val, options) {
|
|
100
|
+
var opt = options || {};
|
|
101
|
+
var enc = opt.encode || encode;
|
|
102
|
+
|
|
103
|
+
if (typeof enc !== 'function') {
|
|
104
|
+
throw new TypeError('option encode is invalid');
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
if (!fieldContentRegExp.test(name)) {
|
|
108
|
+
throw new TypeError('argument name is invalid');
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
var value = enc(val);
|
|
112
|
+
|
|
113
|
+
if (value && !fieldContentRegExp.test(value)) {
|
|
114
|
+
throw new TypeError('argument val is invalid');
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
var str = name + '=' + value;
|
|
118
|
+
|
|
119
|
+
if (null != opt.maxAge) {
|
|
120
|
+
var maxAge = opt.maxAge - 0;
|
|
121
|
+
|
|
122
|
+
if (isNaN(maxAge) || !isFinite(maxAge)) {
|
|
123
|
+
throw new TypeError('option maxAge is invalid')
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
str += '; Max-Age=' + Math.floor(maxAge);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
if (opt.domain) {
|
|
130
|
+
if (!fieldContentRegExp.test(opt.domain)) {
|
|
131
|
+
throw new TypeError('option domain is invalid');
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
str += '; Domain=' + opt.domain;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
if (opt.path) {
|
|
138
|
+
if (!fieldContentRegExp.test(opt.path)) {
|
|
139
|
+
throw new TypeError('option path is invalid');
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
str += '; Path=' + opt.path;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
if (opt.expires) {
|
|
146
|
+
if (typeof opt.expires.toUTCString !== 'function') {
|
|
147
|
+
throw new TypeError('option expires is invalid');
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
str += '; Expires=' + opt.expires.toUTCString();
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
if (opt.httpOnly) {
|
|
154
|
+
str += '; HttpOnly';
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
if (opt.secure) {
|
|
158
|
+
str += '; Secure';
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
if (opt.sameSite) {
|
|
162
|
+
var sameSite = typeof opt.sameSite === 'string'
|
|
163
|
+
? opt.sameSite.toLowerCase() : opt.sameSite;
|
|
164
|
+
|
|
165
|
+
switch (sameSite) {
|
|
166
|
+
case true:
|
|
167
|
+
str += '; SameSite=Strict';
|
|
168
|
+
break;
|
|
169
|
+
case 'lax':
|
|
170
|
+
str += '; SameSite=Lax';
|
|
171
|
+
break;
|
|
172
|
+
case 'strict':
|
|
173
|
+
str += '; SameSite=Strict';
|
|
174
|
+
break;
|
|
175
|
+
case 'none':
|
|
176
|
+
str += '; SameSite=None';
|
|
177
|
+
break;
|
|
178
|
+
default:
|
|
179
|
+
throw new TypeError('option sameSite is invalid');
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
return str;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
/**
|
|
187
|
+
* Try decoding a string using a decoding function.
|
|
188
|
+
*
|
|
189
|
+
* @param {string} str
|
|
190
|
+
* @param {function} decode
|
|
191
|
+
* @private
|
|
192
|
+
*/
|
|
193
|
+
|
|
194
|
+
function tryDecode(str, decode) {
|
|
195
|
+
try {
|
|
196
|
+
return decode(str);
|
|
197
|
+
} catch (e) {
|
|
198
|
+
return str;
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
var cookie = {
|
|
203
|
+
parse: parse_1,
|
|
204
|
+
serialize: serialize_1
|
|
205
|
+
};
|
|
206
|
+
|
|
207
|
+
export { cookie as c, parse_1 as p, serialize_1 as s };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { c as createCommonjsModule, a as commonjsGlobal, g as getCjsExportFromNamespace } from './_commonjsHelpers-0c4b6f40.js';
|
|
2
|
-
import { m as moment } from './moment-
|
|
2
|
+
import { m as moment } from './moment-e2f9b20c.js';
|
|
3
3
|
|
|
4
4
|
var momentTimezone = createCommonjsModule(function (module) {
|
|
5
5
|
//! moment-timezone.js
|
|
@@ -263,9 +263,6 @@ var InfiniteScroll = /** @class */ (function (_super) {
|
|
|
263
263
|
_this.dragging = false;
|
|
264
264
|
if (_this.state.pullToRefreshThresholdBreached) {
|
|
265
265
|
_this.props.refreshFunction && _this.props.refreshFunction();
|
|
266
|
-
_this.setState({
|
|
267
|
-
pullToRefreshThresholdBreached: false,
|
|
268
|
-
});
|
|
269
266
|
}
|
|
270
267
|
requestAnimationFrame(function () {
|
|
271
268
|
// this._infScroll
|
|
@@ -372,6 +369,7 @@ var InfiniteScroll = /** @class */ (function (_super) {
|
|
|
372
369
|
// update state when new data was sent in
|
|
373
370
|
this.setState({
|
|
374
371
|
showLoader: false,
|
|
372
|
+
pullToRefreshThresholdBreached: false,
|
|
375
373
|
});
|
|
376
374
|
};
|
|
377
375
|
InfiniteScroll.prototype.isElementAtBottom = function (target, scrollThreshold) {
|
package/dist/esm/index.js
CHANGED
|
@@ -13,22 +13,22 @@ import './web.dom.iterable-46c95e52.js';
|
|
|
13
13
|
import './typeof-5f046efd.js';
|
|
14
14
|
import './_is-array-dd5523d6.js';
|
|
15
15
|
import 'react';
|
|
16
|
-
import './index-
|
|
16
|
+
import './index-3f4dd6f2.js';
|
|
17
17
|
import 'prop-types';
|
|
18
18
|
import 'react-bootstrap/Container';
|
|
19
19
|
import 'react-bootstrap/Row';
|
|
20
20
|
import 'react-bootstrap/Col';
|
|
21
21
|
import 'react-bootstrap/Card';
|
|
22
|
-
import './moment-
|
|
22
|
+
import './moment-e2f9b20c.js';
|
|
23
23
|
import 'next/router';
|
|
24
24
|
import './isSymbol-b7b7434f.js';
|
|
25
25
|
import './debounce-048d9cb6.js';
|
|
26
|
-
import './index.es-
|
|
26
|
+
import './index.es-29c1cef5.js';
|
|
27
27
|
import 'react-dom';
|
|
28
28
|
import './visibility-sensor-0baa4eea.js';
|
|
29
|
-
import './index-
|
|
29
|
+
import './index-73819142.js';
|
|
30
30
|
import './index-5f9f807a.js';
|
|
31
|
-
import './main-
|
|
31
|
+
import './main-d7ee6151.js';
|
|
32
32
|
import './entities-7cc3bf45.js';
|
|
33
33
|
import './slicedToArray-f1e40361.js';
|
|
34
34
|
import './stringify-e30bc114.js';
|
|
@@ -36,10 +36,10 @@ import './asyncToGenerator-0379e924.js';
|
|
|
36
36
|
import './_set-species-6f64f1c1.js';
|
|
37
37
|
export { B as Beam, S as Segment } from './beam-a25bd8fd.js';
|
|
38
38
|
export { default as AdSlot } from './AdSlot.js';
|
|
39
|
-
import './ADInfeed-
|
|
39
|
+
import './ADInfeed-2eb234ae.js';
|
|
40
40
|
export { default as DeckContent } from './DeckContent.js';
|
|
41
41
|
import './lodash-17fdfebb.js';
|
|
42
|
-
import './ADlgInfeed-
|
|
42
|
+
import './ADlgInfeed-17c13711.js';
|
|
43
43
|
import './_arrayMap-64cbe0e4.js';
|
|
44
44
|
import './get-0eb56363.js';
|
|
45
45
|
export { default as AD } from './AD.js';
|
|
@@ -48,7 +48,7 @@ export { default as GridContent } from './GridContent.js';
|
|
|
48
48
|
export { default as DeckQueue } from './DeckQueue.js';
|
|
49
49
|
import 'react-bootstrap/Media';
|
|
50
50
|
export { default as ThumbnailCard } from './ThumbnailCard.js';
|
|
51
|
-
import './BlockContent-
|
|
51
|
+
import './BlockContent-e9b4ddcf.js';
|
|
52
52
|
import './react-social-icons-a7d5c5c7.js';
|
|
53
53
|
export { default as TaxonomyCard } from './TaxonomyCard.js';
|
|
54
54
|
export { default as RolesDeck } from './RolesDeck.js';
|
|
@@ -67,7 +67,7 @@ export { default as IssueDeck } from './IssueDeck.js';
|
|
|
67
67
|
import 'react-bootstrap/Badge';
|
|
68
68
|
export { default as IssueContentDeck } from './IssueContentDeck.js';
|
|
69
69
|
import 'react-bootstrap/Spinner';
|
|
70
|
-
import './index-
|
|
70
|
+
import './index-ef6d5dcf.js';
|
|
71
71
|
import './js.cookie-6874175c.js';
|
|
72
72
|
export { default as EventsDeck } from './EventsDeck.js';
|
|
73
73
|
export { default as CMEDeck } from './CMEDeck.js';
|
|
@@ -150,15 +150,14 @@ export { default as ConferenceArticleCard } from './ConferenceArticleCard.js';
|
|
|
150
150
|
export { default as KMTracker } from './KMTracker.js';
|
|
151
151
|
export { default as getSeriesDetail } from './getSeriesDetail.js';
|
|
152
152
|
export { default as SetCookie } from './SetCookie.js';
|
|
153
|
-
import '
|
|
154
|
-
export { default as getQuery } from './getQuery.js';
|
|
153
|
+
import './index-db3bb315.js';
|
|
155
154
|
export { default as getRelatedArticle } from './getRelatedArticle.js';
|
|
155
|
+
export { default as getQuery } from './getQuery.js';
|
|
156
156
|
export { default as Auth } from './Auth.js';
|
|
157
157
|
import 'swr';
|
|
158
158
|
import 'passport-local';
|
|
159
159
|
import 'mysql';
|
|
160
160
|
export { default as View } from './View.js';
|
|
161
|
-
export { g as getTargeting } from './getTargeting-
|
|
161
|
+
export { g as getTargeting } from './getTargeting-1f2c61e3.js';
|
|
162
162
|
export { default as urlFor } from './urlFor.js';
|
|
163
|
-
import 'react-twitter-embed';
|
|
164
163
|
export { default as PartnerDetailListing } from './PartnerDetailListing.js';
|