@mjhls/mjh-framework 1.0.733-beta-0.2 → 1.0.733-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.
- package/dist/cjs/AD300x250.js +1 -3
- package/dist/cjs/AD300x250x600.js +1 -3
- package/dist/cjs/AD728x90.js +1 -3
- package/dist/cjs/ADFloatingFooter.js +1 -3
- package/dist/cjs/ADGutter.js +1 -3
- package/dist/cjs/ADSkyscraper.js +1 -3
- package/dist/cjs/ADSponsoredResources.js +1 -3
- package/dist/cjs/ADWebcast.js +1 -3
- package/dist/cjs/ADWelcome.js +1 -3
- package/dist/cjs/ArticleCarousel.js +1 -1
- package/dist/cjs/ArticleProgramLandingPage.js +6 -6
- package/dist/cjs/ArticleSeriesLandingPage.js +3 -3
- package/dist/cjs/ArticleSeriesListing.js +2 -2
- package/dist/cjs/Auth.js +5 -5
- package/dist/cjs/{BlockContent-80b15fac.js → BlockContent-091a991f.js} +1 -1
- package/dist/cjs/ConferenceArticleCard.js +1 -1
- package/dist/cjs/DeckContent.js +2 -2
- package/dist/cjs/DeckQueue.js +2 -2
- package/dist/cjs/ExternalResources.js +4 -4
- package/dist/cjs/Feature.js +1 -1
- package/dist/cjs/ForbesHero.js +1 -1
- package/dist/cjs/GridContent.js +5 -9
- package/dist/cjs/GridHero.js +1 -1
- package/dist/cjs/GroupDeck.js +1 -1
- package/dist/cjs/Hero.js +1 -1
- package/dist/cjs/HorizontalArticleListing.js +4 -4
- package/dist/cjs/HorizontalHero.js +1 -1
- package/dist/cjs/IssueContentDeck.js +1 -1
- package/dist/cjs/IssueDeck.js +1 -1
- package/dist/cjs/IssueLanding.js +2 -2
- package/dist/cjs/MasterDeck.js +5 -9
- package/dist/cjs/OncliveHero.js +1 -1
- package/dist/cjs/OncliveLargeHero.js +1 -1
- package/dist/cjs/PartnerDetailListing.js +7 -7
- package/dist/cjs/PubSection.js +2 -2
- package/dist/cjs/PublicationDeck.js +2 -2
- package/dist/cjs/QueueDeckExpanded.js +4 -8
- package/dist/cjs/RecentNews.js +1 -1
- package/dist/cjs/RelatedContent.js +1 -1
- package/dist/cjs/TaxonomyCard.js +2 -2
- package/dist/cjs/TaxonomyDescription.js +4 -4
- package/dist/cjs/ThumbnailCard.js +1 -1
- package/dist/cjs/VerticalHero.js +1 -1
- package/dist/cjs/VideoProgramLandingPage.js +6 -6
- package/dist/cjs/VideoSeriesCard.js +3 -3
- package/dist/cjs/VideoSeriesLandingPage.js +5 -5
- package/dist/cjs/VideoSeriesListing.js +2 -2
- package/dist/cjs/View.js +62 -107
- package/dist/cjs/YahooHero.js +1 -1
- package/dist/cjs/YoutubeGroup.js +1 -1
- package/dist/cjs/getQuery.js +2 -1
- package/dist/cjs/getRelatedArticle.js +64 -126
- package/dist/cjs/getSerializers.js +4 -4
- package/dist/cjs/{getTargeting-0d9b6b99.js → getTargeting-9af0ef69.js} +5 -9
- package/dist/cjs/getTargeting.js +1 -1
- package/dist/cjs/{index-41222a33.js → index-44b6f046.js} +439 -451
- package/dist/cjs/{index-39beccb3.js → index-be0c82be.js} +1 -2
- package/dist/cjs/index.js +6 -6
- package/dist/cjs/{inherits-513d81cd.js → inherits-c9f99d47.js} +4 -4
- package/dist/cjs/{lodash-7fd85bcf.js → lodash-fc2922d0.js} +22 -71
- package/dist/cjs/urlFor.js +1 -1
- package/dist/esm/AD300x250.js +1 -3
- package/dist/esm/AD300x250x600.js +1 -3
- package/dist/esm/AD728x90.js +1 -3
- package/dist/esm/ADFloatingFooter.js +1 -3
- package/dist/esm/ADGutter.js +1 -3
- package/dist/esm/ADSkyscraper.js +1 -3
- package/dist/esm/ADSponsoredResources.js +1 -3
- package/dist/esm/ADWebcast.js +1 -3
- package/dist/esm/ADWelcome.js +1 -3
- package/dist/esm/ArticleCarousel.js +1 -1
- package/dist/esm/ArticleProgramLandingPage.js +3 -3
- package/dist/esm/ArticleSeriesLandingPage.js +2 -2
- package/dist/esm/ArticleSeriesListing.js +1 -1
- package/dist/esm/Auth.js +2 -2
- package/dist/esm/{BlockContent-c409aca5.js → BlockContent-e9b4ddcf.js} +1 -1
- package/dist/esm/ConferenceArticleCard.js +1 -1
- package/dist/esm/DeckContent.js +1 -1
- package/dist/esm/DeckQueue.js +1 -1
- package/dist/esm/ExternalResources.js +3 -3
- package/dist/esm/Feature.js +1 -1
- package/dist/esm/ForbesHero.js +1 -1
- package/dist/esm/GridContent.js +4 -8
- package/dist/esm/GridHero.js +1 -1
- package/dist/esm/GroupDeck.js +1 -1
- package/dist/esm/Hero.js +1 -1
- package/dist/esm/HorizontalArticleListing.js +3 -3
- package/dist/esm/HorizontalHero.js +1 -1
- package/dist/esm/IssueContentDeck.js +1 -1
- package/dist/esm/IssueDeck.js +1 -1
- package/dist/esm/IssueLanding.js +2 -2
- package/dist/esm/MasterDeck.js +4 -8
- package/dist/esm/OncliveHero.js +1 -1
- package/dist/esm/OncliveLargeHero.js +1 -1
- package/dist/esm/PartnerDetailListing.js +4 -4
- package/dist/esm/PubSection.js +2 -2
- package/dist/esm/PublicationDeck.js +2 -2
- package/dist/esm/QueueDeckExpanded.js +4 -8
- package/dist/esm/RecentNews.js +1 -1
- package/dist/esm/RelatedContent.js +1 -1
- package/dist/esm/TaxonomyCard.js +2 -2
- package/dist/esm/TaxonomyDescription.js +3 -3
- package/dist/esm/ThumbnailCard.js +1 -1
- package/dist/esm/VerticalHero.js +1 -1
- package/dist/esm/VideoProgramLandingPage.js +3 -3
- package/dist/esm/VideoSeriesCard.js +1 -1
- package/dist/esm/VideoSeriesLandingPage.js +2 -2
- package/dist/esm/VideoSeriesListing.js +1 -1
- package/dist/esm/View.js +36 -81
- package/dist/esm/YahooHero.js +1 -1
- package/dist/esm/YoutubeGroup.js +1 -1
- package/dist/esm/getQuery.js +2 -1
- package/dist/esm/getRelatedArticle.js +64 -126
- package/dist/esm/getSerializers.js +3 -3
- package/dist/esm/{getTargeting-a1ebbed5.js → getTargeting-7211f12c.js} +3 -7
- package/dist/esm/getTargeting.js +1 -1
- package/dist/esm/{index-3849e3fe.js → index-73819142.js} +1 -2
- package/dist/esm/{index-196b1669.js → index-96904235.js} +438 -450
- package/dist/esm/index.js +5 -5
- package/dist/esm/{lodash-ec8c6b48.js → lodash-17fdfebb.js} +22 -71
- package/dist/esm/urlFor.js +1 -1
- package/package.json +3 -3
|
@@ -32,18 +32,9 @@ function parseString(setCookieValue, options) {
|
|
|
32
32
|
? Object.assign({}, defaultParseOptions, options)
|
|
33
33
|
: defaultParseOptions;
|
|
34
34
|
|
|
35
|
-
try {
|
|
36
|
-
value = options.decodeValues ? decodeURIComponent(value) : value; // decode cookie value
|
|
37
|
-
} catch (e) {
|
|
38
|
-
console.error(
|
|
39
|
-
`set-cookie-parser encountered an error while decoding a cookie with value '${value}'. Set options.decodeValues to false to disable this feature.`,
|
|
40
|
-
e
|
|
41
|
-
);
|
|
42
|
-
}
|
|
43
|
-
|
|
44
35
|
var cookie = {
|
|
45
36
|
name: name, // grab everything before the first =
|
|
46
|
-
value: value,
|
|
37
|
+
value: options.decodeValues ? decodeURIComponent(value) : value, // decode cookie value
|
|
47
38
|
};
|
|
48
39
|
|
|
49
40
|
parts.forEach(function (part) {
|
|
@@ -214,7 +205,7 @@ setCookie.parse = parse_1;
|
|
|
214
205
|
setCookie.parseString = parseString_1;
|
|
215
206
|
setCookie.splitCookiesString = splitCookiesString_1;
|
|
216
207
|
|
|
217
|
-
var
|
|
208
|
+
var dist = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
218
209
|
var __assign = (_commonjsHelpers.commonjsGlobal && _commonjsHelpers.commonjsGlobal.__assign) || function () {
|
|
219
210
|
__assign = Object.assign || function(t) {
|
|
220
211
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
@@ -227,33 +218,10 @@ var __assign = (_commonjsHelpers.commonjsGlobal && _commonjsHelpers.commonjsGlob
|
|
|
227
218
|
return __assign.apply(this, arguments);
|
|
228
219
|
};
|
|
229
220
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
230
|
-
exports.
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
function isBrowser() {
|
|
235
|
-
return typeof window !== 'undefined';
|
|
236
|
-
}
|
|
237
|
-
exports.isBrowser = isBrowser;
|
|
238
|
-
/**
|
|
239
|
-
* Create an instance of the Cookie interface
|
|
240
|
-
*/
|
|
241
|
-
function createCookie(name, value, options) {
|
|
242
|
-
var sameSite = options.sameSite;
|
|
243
|
-
if (sameSite === true) {
|
|
244
|
-
sameSite = 'strict';
|
|
245
|
-
}
|
|
246
|
-
if (sameSite === undefined || sameSite === false) {
|
|
247
|
-
sameSite = 'lax';
|
|
248
|
-
}
|
|
249
|
-
var cookieToSet = __assign(__assign({}, options), { sameSite: sameSite });
|
|
250
|
-
delete cookieToSet.encode;
|
|
251
|
-
return __assign({ name: name, value: value }, cookieToSet);
|
|
252
|
-
}
|
|
253
|
-
exports.createCookie = createCookie;
|
|
254
|
-
/**
|
|
255
|
-
* Tells whether given objects have the same properties.
|
|
256
|
-
*/
|
|
221
|
+
exports.destroyCookie = exports.setCookie = exports.parseCookies = void 0;
|
|
222
|
+
|
|
223
|
+
|
|
224
|
+
var isBrowser = function () { return typeof window !== 'undefined'; };
|
|
257
225
|
function hasSameProperties(a, b) {
|
|
258
226
|
var aProps = Object.getOwnPropertyNames(a);
|
|
259
227
|
var bProps = Object.getOwnPropertyNames(b);
|
|
@@ -268,9 +236,8 @@ function hasSameProperties(a, b) {
|
|
|
268
236
|
}
|
|
269
237
|
return true;
|
|
270
238
|
}
|
|
271
|
-
exports.hasSameProperties = hasSameProperties;
|
|
272
239
|
/**
|
|
273
|
-
* Compare the cookie and return true if the cookies
|
|
240
|
+
* Compare the cookie and return true if the cookies has equivalent
|
|
274
241
|
* options and the cookies would be overwritten in the browser storage.
|
|
275
242
|
*
|
|
276
243
|
* @param a first Cookie for comparison
|
|
@@ -283,109 +250,71 @@ function areCookiesEqual(a, b) {
|
|
|
283
250
|
}
|
|
284
251
|
return (hasSameProperties(__assign(__assign({}, a), { sameSite: undefined }), __assign(__assign({}, b), { sameSite: undefined })) && sameSiteSame);
|
|
285
252
|
}
|
|
286
|
-
exports.areCookiesEqual = areCookiesEqual;
|
|
287
|
-
/* Functions */
|
|
288
|
-
|
|
289
|
-
});
|
|
290
|
-
|
|
291
|
-
_commonjsHelpers.unwrapExports(utils);
|
|
292
|
-
var utils_1 = utils.areCookiesEqual;
|
|
293
|
-
var utils_2 = utils.hasSameProperties;
|
|
294
|
-
var utils_3 = utils.createCookie;
|
|
295
|
-
var utils_4 = utils.isBrowser;
|
|
296
|
-
|
|
297
|
-
var dist = _commonjsHelpers.createCommonjsModule(function (module, exports) {
|
|
298
|
-
var __assign = (_commonjsHelpers.commonjsGlobal && _commonjsHelpers.commonjsGlobal.__assign) || function () {
|
|
299
|
-
__assign = Object.assign || function(t) {
|
|
300
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
301
|
-
s = arguments[i];
|
|
302
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
303
|
-
t[p] = s[p];
|
|
304
|
-
}
|
|
305
|
-
return t;
|
|
306
|
-
};
|
|
307
|
-
return __assign.apply(this, arguments);
|
|
308
|
-
};
|
|
309
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
310
|
-
exports.destroyCookie = exports.setCookie = exports.parseCookies = void 0;
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
253
|
/**
|
|
254
|
+
* Create an instance of the Cookie interface
|
|
255
|
+
*
|
|
256
|
+
* @param name name of the Cookie
|
|
257
|
+
* @param value value of the Cookie
|
|
258
|
+
* @param options Cookie options
|
|
259
|
+
*/
|
|
260
|
+
function createCookie(name, value, options) {
|
|
261
|
+
var sameSite = options.sameSite;
|
|
262
|
+
if (sameSite === true) {
|
|
263
|
+
sameSite = 'strict';
|
|
264
|
+
}
|
|
265
|
+
if (sameSite === undefined || sameSite === false) {
|
|
266
|
+
sameSite = 'lax';
|
|
267
|
+
}
|
|
268
|
+
var cookieToSet = __assign(__assign({}, options), { sameSite: sameSite });
|
|
269
|
+
delete cookieToSet.encode;
|
|
270
|
+
return __assign({ name: name, value: value }, cookieToSet);
|
|
271
|
+
}
|
|
272
|
+
/**
|
|
273
|
+
*
|
|
315
274
|
* Parses cookies.
|
|
316
275
|
*
|
|
317
|
-
* @param ctx
|
|
318
|
-
* @param options
|
|
276
|
+
* @param ctx
|
|
277
|
+
* @param options
|
|
319
278
|
*/
|
|
320
279
|
function parseCookies(ctx, options) {
|
|
321
|
-
|
|
322
|
-
if ((_b = (_a = ctx === null || ctx === void 0 ? void 0 : ctx.req) === null || _a === void 0 ? void 0 : _a.headers) === null || _b === void 0 ? void 0 : _b.cookie) {
|
|
280
|
+
if (ctx && ctx.req && ctx.req.headers && ctx.req.headers.cookie) {
|
|
323
281
|
return index$5.cookie.parse(ctx.req.headers.cookie, options);
|
|
324
282
|
}
|
|
325
|
-
if (
|
|
283
|
+
if (isBrowser()) {
|
|
326
284
|
return index$5.cookie.parse(document.cookie, options);
|
|
327
285
|
}
|
|
328
286
|
return {};
|
|
329
287
|
}
|
|
330
288
|
exports.parseCookies = parseCookies;
|
|
331
289
|
/**
|
|
290
|
+
*
|
|
332
291
|
* Sets a cookie.
|
|
333
292
|
*
|
|
334
|
-
* @param ctx
|
|
335
|
-
* @param name
|
|
336
|
-
* @param value
|
|
337
|
-
* @param options
|
|
293
|
+
* @param ctx
|
|
294
|
+
* @param name
|
|
295
|
+
* @param value
|
|
296
|
+
* @param options
|
|
338
297
|
*/
|
|
339
298
|
function setCookie$1(ctx, name, value, options) {
|
|
340
|
-
|
|
341
|
-
if (options === void 0) { options = {}; }
|
|
342
|
-
// SSR
|
|
343
|
-
if (((_a = ctx === null || ctx === void 0 ? void 0 : ctx.res) === null || _a === void 0 ? void 0 : _a.getHeader) && ctx.res.setHeader) {
|
|
344
|
-
// Check if response has finished and warn about it.
|
|
345
|
-
if ((_b = ctx === null || ctx === void 0 ? void 0 : ctx.res) === null || _b === void 0 ? void 0 : _b.finished) {
|
|
346
|
-
console.warn("Not setting \"" + name + "\" cookie. Response has finished.");
|
|
347
|
-
console.warn("You should set cookie before res.send()");
|
|
348
|
-
return {};
|
|
349
|
-
}
|
|
350
|
-
/**
|
|
351
|
-
* Load existing cookies from the header and parse them.
|
|
352
|
-
*/
|
|
299
|
+
if (ctx && ctx.res && ctx.res.getHeader && ctx.res.setHeader) {
|
|
353
300
|
var cookies = ctx.res.getHeader('Set-Cookie') || [];
|
|
354
301
|
if (typeof cookies === 'string')
|
|
355
302
|
cookies = [cookies];
|
|
356
303
|
if (typeof cookies === 'number')
|
|
357
304
|
cookies = [];
|
|
358
|
-
|
|
359
|
-
* Parse cookies but ignore values - we've already encoded
|
|
360
|
-
* them in the previous call.
|
|
361
|
-
*/
|
|
362
|
-
var parsedCookies = setCookie.parse(cookies, {
|
|
363
|
-
decodeValues: false,
|
|
364
|
-
});
|
|
365
|
-
/**
|
|
366
|
-
* We create the new cookie and make sure that none of
|
|
367
|
-
* the existing cookies match it.
|
|
368
|
-
*/
|
|
369
|
-
var newCookie_1 = utils.createCookie(name, value, options);
|
|
305
|
+
var parsedCookies = setCookie.parse(cookies);
|
|
370
306
|
var cookiesToSet_1 = [];
|
|
371
307
|
parsedCookies.forEach(function (parsedCookie) {
|
|
372
|
-
if (!
|
|
373
|
-
|
|
374
|
-
* We serialize the cookie back to the original format
|
|
375
|
-
* if it isn't the same as the new one.
|
|
376
|
-
*/
|
|
377
|
-
var serializedCookie = index$5.cookie.serialize(parsedCookie.name, parsedCookie.value, __assign({
|
|
378
|
-
// we prevent reencoding by default, but you might override it
|
|
379
|
-
encode: function (val) { return val; } }, parsedCookie));
|
|
380
|
-
cookiesToSet_1.push(serializedCookie);
|
|
308
|
+
if (!areCookiesEqual(parsedCookie, createCookie(name, value, options))) {
|
|
309
|
+
cookiesToSet_1.push(index$5.cookie.serialize(parsedCookie.name, parsedCookie.value, __assign({}, parsedCookie)));
|
|
381
310
|
}
|
|
382
311
|
});
|
|
383
312
|
cookiesToSet_1.push(index$5.cookie.serialize(name, value, options));
|
|
384
|
-
|
|
385
|
-
|
|
313
|
+
if (!ctx.res.finished) {
|
|
314
|
+
ctx.res.setHeader('Set-Cookie', cookiesToSet_1);
|
|
315
|
+
}
|
|
386
316
|
}
|
|
387
|
-
|
|
388
|
-
if (utils.isBrowser()) {
|
|
317
|
+
if (isBrowser()) {
|
|
389
318
|
if (options && options.httpOnly) {
|
|
390
319
|
throw new Error('Can not set a httpOnly cookie in the browser.');
|
|
391
320
|
}
|
|
@@ -395,21 +324,30 @@ function setCookie$1(ctx, name, value, options) {
|
|
|
395
324
|
}
|
|
396
325
|
exports.setCookie = setCookie$1;
|
|
397
326
|
/**
|
|
327
|
+
*
|
|
398
328
|
* Destroys a cookie with a particular name.
|
|
399
329
|
*
|
|
400
|
-
* @param ctx
|
|
401
|
-
* @param name
|
|
402
|
-
* @param options
|
|
330
|
+
* @param ctx
|
|
331
|
+
* @param name
|
|
332
|
+
* @param options
|
|
403
333
|
*/
|
|
404
334
|
function destroyCookie(ctx, name, options) {
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
335
|
+
var opts = __assign(__assign({}, (options || {})), { maxAge: -1 });
|
|
336
|
+
if (ctx && ctx.res && ctx.res.setHeader && ctx.res.getHeader) {
|
|
337
|
+
var cookies = ctx.res.getHeader('Set-Cookie') || [];
|
|
338
|
+
if (typeof cookies === 'string')
|
|
339
|
+
cookies = [cookies];
|
|
340
|
+
if (typeof cookies === 'number')
|
|
341
|
+
cookies = [];
|
|
342
|
+
cookies.push(index$5.cookie.serialize(name, '', opts));
|
|
343
|
+
ctx.res.setHeader('Set-Cookie', cookies);
|
|
344
|
+
}
|
|
345
|
+
if (isBrowser()) {
|
|
346
|
+
document.cookie = index$5.cookie.serialize(name, '', opts);
|
|
347
|
+
}
|
|
348
|
+
return {};
|
|
410
349
|
}
|
|
411
350
|
exports.destroyCookie = destroyCookie;
|
|
412
|
-
/* Utility Exports */
|
|
413
351
|
exports.default = {
|
|
414
352
|
set: setCookie$1,
|
|
415
353
|
get: parseCookies,
|
|
@@ -503,8 +441,8 @@ var getRelatedArticle = function () {
|
|
|
503
441
|
prevSlugs = cookies['prevSlugs'];
|
|
504
442
|
|
|
505
443
|
if (!!prevSlugs) {
|
|
506
|
-
dist_2(ctx, 'prevSlugs', prevSlugs + ',"' + url + '"', {});
|
|
507
|
-
filters = '&& !(url.current in [' + prevSlugs + '])';
|
|
444
|
+
if (!prevSlugs.includes(url)) dist_2(ctx, 'prevSlugs', prevSlugs + ',"' + url + '"', {});
|
|
445
|
+
filters = filters + ' && !(url.current in [' + prevSlugs + '])';
|
|
508
446
|
} else dist_2(ctx, 'prevSlugs', '"' + url + '"', {});
|
|
509
447
|
}
|
|
510
448
|
|
|
@@ -10,7 +10,7 @@ require('./core.get-iterator-method-f62321d4.js');
|
|
|
10
10
|
require('./_object-pie-68c5bcbc.js');
|
|
11
11
|
require('./extends-60837c34.js');
|
|
12
12
|
require('./_object-sap-5e74ba08.js');
|
|
13
|
-
require('./inherits-
|
|
13
|
+
require('./inherits-c9f99d47.js');
|
|
14
14
|
require('./define-property-f4d12f4e.js');
|
|
15
15
|
require('./web.dom.iterable-a0e279c1.js');
|
|
16
16
|
require('./typeof-725500bc.js');
|
|
@@ -25,7 +25,7 @@ require('next/router');
|
|
|
25
25
|
require('./isSymbol-04666465.js');
|
|
26
26
|
require('./debounce-eb287781.js');
|
|
27
27
|
require('react-dom');
|
|
28
|
-
require('./index-
|
|
28
|
+
require('./index-be0c82be.js');
|
|
29
29
|
require('./index-da796b8c.js');
|
|
30
30
|
require('./main-02daeefe.js');
|
|
31
31
|
require('./entities-310b46ee.js');
|
|
@@ -36,14 +36,14 @@ require('./_set-species-f92c67c5.js');
|
|
|
36
36
|
require('./Segment.js');
|
|
37
37
|
require('./Beam.js');
|
|
38
38
|
require('./AdSlot.js');
|
|
39
|
-
require('./BlockContent-
|
|
39
|
+
require('./BlockContent-091a991f.js');
|
|
40
40
|
require('./index-187c967e.js');
|
|
41
41
|
require('./smoothscroll-5054361f.js');
|
|
42
42
|
require('./GroupDeck.js');
|
|
43
43
|
require('react-bootstrap');
|
|
44
44
|
require('./iconBase-68959171.js');
|
|
45
45
|
require('./index.esm-90433435.js');
|
|
46
|
-
var getSerializers = require('./index-
|
|
46
|
+
var getSerializers = require('./index-44b6f046.js');
|
|
47
47
|
require('./util-f2c1b65b.js');
|
|
48
48
|
require('./brightcove-react-player-loader.es-156bd4d6.js');
|
|
49
49
|
require('./_object-to-array-5762f850.js');
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var toConsumableArray = require('./toConsumableArray-9a3476fe.js');
|
|
4
|
-
var _extends = require('./extends-60837c34.js');
|
|
4
|
+
var _extends$1 = require('./extends-60837c34.js');
|
|
5
5
|
|
|
6
6
|
var getContentPlacementUrl = function getContentPlacementUrl(cp) {
|
|
7
7
|
var cp_url = '';
|
|
@@ -26,9 +26,11 @@ var getTargeting = function getTargeting(props) {
|
|
|
26
26
|
_props$cpModification = props.cpModificationRequired,
|
|
27
27
|
cpModificationRequired = _props$cpModification === undefined ? true : _props$cpModification;
|
|
28
28
|
|
|
29
|
+
|
|
29
30
|
if (positionOverride) {
|
|
30
31
|
position = positionOverride;
|
|
31
32
|
}
|
|
33
|
+
|
|
32
34
|
var _article$internalTag = article.internalTag,
|
|
33
35
|
internalTag = _article$internalTag === undefined ? [] : _article$internalTag,
|
|
34
36
|
_article$userDefinedT = article.userDefinedTag,
|
|
@@ -48,8 +50,7 @@ var getTargeting = function getTargeting(props) {
|
|
|
48
50
|
} : _article$documentGrou;
|
|
49
51
|
var document_group = _article$documentGrou.path,
|
|
50
52
|
document_groups = article.document_groups,
|
|
51
|
-
content_placement = article.content_placement
|
|
52
|
-
rootDocumentGroup = article.rootDocumentGroup;
|
|
53
|
+
content_placement = article.content_placement;
|
|
53
54
|
|
|
54
55
|
var context = url;
|
|
55
56
|
var localHistory = props.historyCookie ? JSON.parse(props.historyCookie) : [];
|
|
@@ -132,17 +133,12 @@ var getTargeting = function getTargeting(props) {
|
|
|
132
133
|
}
|
|
133
134
|
|
|
134
135
|
if (props.cache && props.cache.hyperTargeting) {
|
|
135
|
-
targeting = _extends._extends({}, targeting, { campaign_id: props.cache.hyperTargeting });
|
|
136
|
+
targeting = _extends$1._extends({}, targeting, { campaign_id: props.cache.hyperTargeting });
|
|
136
137
|
}
|
|
137
138
|
|
|
138
139
|
if (position && position.length) {
|
|
139
140
|
targeting['pos'] = position;
|
|
140
141
|
}
|
|
141
|
-
|
|
142
|
-
// returning AD Targeting Group
|
|
143
|
-
if (rootDocumentGroup && rootDocumentGroup.identifier) {
|
|
144
|
-
targeting['rootDocumentGroup'] = rootDocumentGroup.identifier.current;
|
|
145
|
-
}
|
|
146
142
|
return targeting;
|
|
147
143
|
};
|
|
148
144
|
|
package/dist/cjs/getTargeting.js
CHANGED
|
@@ -8,7 +8,7 @@ require('./toConsumableArray-9a3476fe.js');
|
|
|
8
8
|
require('./core.get-iterator-method-f62321d4.js');
|
|
9
9
|
require('./_object-pie-68c5bcbc.js');
|
|
10
10
|
require('./extends-60837c34.js');
|
|
11
|
-
var getTargeting = require('./getTargeting-
|
|
11
|
+
var getTargeting = require('./getTargeting-9af0ef69.js');
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|