@mjhls/mjh-framework 1.0.691-beta.6 → 1.0.691-beta.8

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 (43) hide show
  1. package/dist/cjs/ADGutter.js +3 -2
  2. package/dist/cjs/{ADInfeed-fd8c792f.js → ADInfeed-1b449a61.js} +3 -2
  3. package/dist/cjs/ADSkyscraper.js +3 -2
  4. package/dist/cjs/ADSponsoredResources.js +3 -2
  5. package/dist/cjs/ADWebcast.js +3 -2
  6. package/dist/cjs/{ADlgInfeed-40259fe0.js → ADlgInfeed-7dc86b35.js} +3 -2
  7. package/dist/cjs/AdSlot.js +1 -1
  8. package/dist/cjs/Auth.js +206 -6
  9. package/dist/cjs/DeckContent.js +2 -1
  10. package/dist/cjs/ExternalResources.js +1 -1
  11. package/dist/cjs/GridContent.js +4 -2
  12. package/dist/cjs/IssueLanding.js +2 -2
  13. package/dist/cjs/MasterDeck.js +4 -2
  14. package/dist/cjs/PartnerDetailListing.js +3 -3
  15. package/dist/cjs/QueueDeckExpanded.js +4 -2
  16. package/dist/cjs/View.js +3 -3
  17. package/dist/cjs/getRelatedArticle.js +5 -354
  18. package/dist/cjs/getSerializers.js +1 -1
  19. package/dist/cjs/index.js +6 -6
  20. package/dist/esm/ADGutter.js +3 -2
  21. package/dist/esm/{ADInfeed-af6b0616.js → ADInfeed-5a2f924b.js} +3 -2
  22. package/dist/esm/ADSkyscraper.js +3 -2
  23. package/dist/esm/ADSponsoredResources.js +3 -2
  24. package/dist/esm/ADWebcast.js +3 -2
  25. package/dist/esm/{ADlgInfeed-27ba8238.js → ADlgInfeed-c0a01f39.js} +3 -2
  26. package/dist/esm/AdSlot.js +1 -1
  27. package/dist/esm/Auth.js +201 -1
  28. package/dist/esm/DeckContent.js +2 -1
  29. package/dist/esm/ExternalResources.js +1 -1
  30. package/dist/esm/GridContent.js +4 -2
  31. package/dist/esm/IssueLanding.js +2 -2
  32. package/dist/esm/MasterDeck.js +4 -2
  33. package/dist/esm/PartnerDetailListing.js +3 -3
  34. package/dist/esm/QueueDeckExpanded.js +4 -2
  35. package/dist/esm/View.js +3 -3
  36. package/dist/esm/getRelatedArticle.js +5 -354
  37. package/dist/esm/getSerializers.js +1 -1
  38. package/dist/esm/index.js +5 -5
  39. package/package.json +1 -1
  40. package/dist/cjs/index-bd6c9f56.js +0 -211
  41. package/dist/esm/index-db3bb315.js +0 -207
  42. /package/dist/cjs/{index-1735f801.js → index-9ced0453.js} +0 -0
  43. /package/dist/esm/{index-273cc821.js → index-3be21153.js} +0 -0
package/dist/esm/Auth.js CHANGED
@@ -15,7 +15,6 @@ import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-7c6
15
15
  import './_set-species-cede29f8.js';
16
16
  import { Col, Form, Button, Spinner } from 'react-bootstrap';
17
17
  import { u as util } from './util-7700fc59.js';
18
- import { s as serialize_1, p as parse_1 } from './index-db3bb315.js';
19
18
  import useSWR from 'swr';
20
19
  import Local from 'passport-local';
21
20
  import mysql from 'mysql';
@@ -1203,6 +1202,207 @@ var SignupForm$1 = function SignupForm(props) {
1203
1202
  );
1204
1203
  };
1205
1204
 
1205
+ /*!
1206
+ * cookie
1207
+ * Copyright(c) 2012-2014 Roman Shtylman
1208
+ * Copyright(c) 2015 Douglas Christopher Wilson
1209
+ * MIT Licensed
1210
+ */
1211
+
1212
+ /**
1213
+ * Module exports.
1214
+ * @public
1215
+ */
1216
+
1217
+ var parse_1 = parse;
1218
+ var serialize_1 = serialize;
1219
+
1220
+ /**
1221
+ * Module variables.
1222
+ * @private
1223
+ */
1224
+
1225
+ var decode = decodeURIComponent;
1226
+ var encode = encodeURIComponent;
1227
+ var pairSplitRegExp = /; */;
1228
+
1229
+ /**
1230
+ * RegExp to match field-content in RFC 7230 sec 3.2
1231
+ *
1232
+ * field-content = field-vchar [ 1*( SP / HTAB ) field-vchar ]
1233
+ * field-vchar = VCHAR / obs-text
1234
+ * obs-text = %x80-FF
1235
+ */
1236
+
1237
+ var fieldContentRegExp = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;
1238
+
1239
+ /**
1240
+ * Parse a cookie header.
1241
+ *
1242
+ * Parse the given cookie header string into an object
1243
+ * The object has the various cookies as keys(names) => values
1244
+ *
1245
+ * @param {string} str
1246
+ * @param {object} [options]
1247
+ * @return {object}
1248
+ * @public
1249
+ */
1250
+
1251
+ function parse(str, options) {
1252
+ if (typeof str !== 'string') {
1253
+ throw new TypeError('argument str must be a string');
1254
+ }
1255
+
1256
+ var obj = {};
1257
+ var opt = options || {};
1258
+ var pairs = str.split(pairSplitRegExp);
1259
+ var dec = opt.decode || decode;
1260
+
1261
+ for (var i = 0; i < pairs.length; i++) {
1262
+ var pair = pairs[i];
1263
+ var eq_idx = pair.indexOf('=');
1264
+
1265
+ // skip things that don't look like key=value
1266
+ if (eq_idx < 0) {
1267
+ continue;
1268
+ }
1269
+
1270
+ var key = pair.substr(0, eq_idx).trim();
1271
+ var val = pair.substr(++eq_idx, pair.length).trim();
1272
+
1273
+ // quoted values
1274
+ if ('"' == val[0]) {
1275
+ val = val.slice(1, -1);
1276
+ }
1277
+
1278
+ // only assign once
1279
+ if (undefined == obj[key]) {
1280
+ obj[key] = tryDecode(val, dec);
1281
+ }
1282
+ }
1283
+
1284
+ return obj;
1285
+ }
1286
+
1287
+ /**
1288
+ * Serialize data into a cookie header.
1289
+ *
1290
+ * Serialize the a name value pair into a cookie string suitable for
1291
+ * http headers. An optional options object specified cookie parameters.
1292
+ *
1293
+ * serialize('foo', 'bar', { httpOnly: true })
1294
+ * => "foo=bar; httpOnly"
1295
+ *
1296
+ * @param {string} name
1297
+ * @param {string} val
1298
+ * @param {object} [options]
1299
+ * @return {string}
1300
+ * @public
1301
+ */
1302
+
1303
+ function serialize(name, val, options) {
1304
+ var opt = options || {};
1305
+ var enc = opt.encode || encode;
1306
+
1307
+ if (typeof enc !== 'function') {
1308
+ throw new TypeError('option encode is invalid');
1309
+ }
1310
+
1311
+ if (!fieldContentRegExp.test(name)) {
1312
+ throw new TypeError('argument name is invalid');
1313
+ }
1314
+
1315
+ var value = enc(val);
1316
+
1317
+ if (value && !fieldContentRegExp.test(value)) {
1318
+ throw new TypeError('argument val is invalid');
1319
+ }
1320
+
1321
+ var str = name + '=' + value;
1322
+
1323
+ if (null != opt.maxAge) {
1324
+ var maxAge = opt.maxAge - 0;
1325
+
1326
+ if (isNaN(maxAge) || !isFinite(maxAge)) {
1327
+ throw new TypeError('option maxAge is invalid')
1328
+ }
1329
+
1330
+ str += '; Max-Age=' + Math.floor(maxAge);
1331
+ }
1332
+
1333
+ if (opt.domain) {
1334
+ if (!fieldContentRegExp.test(opt.domain)) {
1335
+ throw new TypeError('option domain is invalid');
1336
+ }
1337
+
1338
+ str += '; Domain=' + opt.domain;
1339
+ }
1340
+
1341
+ if (opt.path) {
1342
+ if (!fieldContentRegExp.test(opt.path)) {
1343
+ throw new TypeError('option path is invalid');
1344
+ }
1345
+
1346
+ str += '; Path=' + opt.path;
1347
+ }
1348
+
1349
+ if (opt.expires) {
1350
+ if (typeof opt.expires.toUTCString !== 'function') {
1351
+ throw new TypeError('option expires is invalid');
1352
+ }
1353
+
1354
+ str += '; Expires=' + opt.expires.toUTCString();
1355
+ }
1356
+
1357
+ if (opt.httpOnly) {
1358
+ str += '; HttpOnly';
1359
+ }
1360
+
1361
+ if (opt.secure) {
1362
+ str += '; Secure';
1363
+ }
1364
+
1365
+ if (opt.sameSite) {
1366
+ var sameSite = typeof opt.sameSite === 'string'
1367
+ ? opt.sameSite.toLowerCase() : opt.sameSite;
1368
+
1369
+ switch (sameSite) {
1370
+ case true:
1371
+ str += '; SameSite=Strict';
1372
+ break;
1373
+ case 'lax':
1374
+ str += '; SameSite=Lax';
1375
+ break;
1376
+ case 'strict':
1377
+ str += '; SameSite=Strict';
1378
+ break;
1379
+ case 'none':
1380
+ str += '; SameSite=None';
1381
+ break;
1382
+ default:
1383
+ throw new TypeError('option sameSite is invalid');
1384
+ }
1385
+ }
1386
+
1387
+ return str;
1388
+ }
1389
+
1390
+ /**
1391
+ * Try decoding a string using a decoding function.
1392
+ *
1393
+ * @param {string} str
1394
+ * @param {function} decode
1395
+ * @private
1396
+ */
1397
+
1398
+ function tryDecode(str, decode) {
1399
+ try {
1400
+ return decode(str);
1401
+ } catch (e) {
1402
+ return str;
1403
+ }
1404
+ }
1405
+
1206
1406
  var TOKEN_NAME = 'token';
1207
1407
  var MAX_AGE = 60 * 60 * 8; // 8 hours
1208
1408
 
@@ -38,7 +38,7 @@ import './_set-species-cede29f8.js';
38
38
  import './Segment.js';
39
39
  import './Beam.js';
40
40
  import './AdSlot.js';
41
- import { A as ADInfeed } from './ADInfeed-af6b0616.js';
41
+ import { A as ADInfeed } from './ADInfeed-5a2f924b.js';
42
42
 
43
43
  var DeckContent = function (_React$Component) {
44
44
  _inherits(DeckContent, _React$Component);
@@ -267,6 +267,7 @@ var DeckContent = function (_React$Component) {
267
267
  document_url: brandInsight.targeting.document_url
268
268
  },
269
269
  _type: 'BrandInsight',
270
+ /* Passing refresh flag */
270
271
  refreshFlag: brandInsight.refreshFlag ? brandInsight.refreshFlag : false
271
272
  };
272
273
 
@@ -40,7 +40,7 @@ import './GroupDeck.js';
40
40
  import 'react-bootstrap';
41
41
  import Button from 'react-bootstrap/Button';
42
42
  import { m as momentTimezone } from './index-ef6d5dcf.js';
43
- import { g as getSerializers } from './index-273cc821.js';
43
+ import { g as getSerializers } from './index-3be21153.js';
44
44
  import './util-7700fc59.js';
45
45
  import './brightcove-react-player-loader.es-83f53e4e.js';
46
46
  import 'react-bootstrap/Pagination';
@@ -38,9 +38,9 @@ import './_set-species-cede29f8.js';
38
38
  import './Segment.js';
39
39
  import './Beam.js';
40
40
  import './AdSlot.js';
41
- import { A as ADInfeed } from './ADInfeed-af6b0616.js';
41
+ import { A as ADInfeed } from './ADInfeed-5a2f924b.js';
42
42
  import { l as lodash } from './lodash-ec8c6b48.js';
43
- import { A as ADlgInfeed } from './ADlgInfeed-27ba8238.js';
43
+ import { A as ADlgInfeed } from './ADlgInfeed-c0a01f39.js';
44
44
  import { g as getContentCategory } from './getContentCategory-15dcc413.js';
45
45
  import { g as get_1 } from './get-5ee14cda.js';
46
46
  import './AD.js';
@@ -387,6 +387,7 @@ var GridContent = function (_React$Component) {
387
387
  content_placement: brandInsight.targeting.content_placement,
388
388
  document_url: brandInsight.targeting.document_url
389
389
  },
390
+ /* Passing refresh flag */
390
391
  refreshFlag: brandInsight.refreshFlag ? brandInsight.refreshFlag : false
391
392
  };
392
393
  var chunks = lodash.chunk(data, 6).map(function (chunk) {
@@ -425,6 +426,7 @@ var GridContent = function (_React$Component) {
425
426
  document_url: brandInsight.targeting.document_url
426
427
  },
427
428
  _type: 'brandInsightAd',
429
+ /* Passing refresh flag */
428
430
  refreshFlag: brandInsight.refreshFlag ? brandInsight.refreshFlag : false
429
431
  };
430
432
 
@@ -30,9 +30,9 @@ import './_set-species-cede29f8.js';
30
30
  import './Segment.js';
31
31
  import './Beam.js';
32
32
  import './AdSlot.js';
33
- import './ADInfeed-af6b0616.js';
33
+ import './ADInfeed-5a2f924b.js';
34
34
  import './lodash-ec8c6b48.js';
35
- import './ADlgInfeed-27ba8238.js';
35
+ import './ADlgInfeed-c0a01f39.js';
36
36
  import './getContentCategory-15dcc413.js';
37
37
  import './AuthorComponent-00f13201.js';
38
38
  import 'react-bootstrap';
@@ -36,9 +36,9 @@ import './_set-species-cede29f8.js';
36
36
  import './Segment.js';
37
37
  import './Beam.js';
38
38
  import './AdSlot.js';
39
- import { A as ADInfeed } from './ADInfeed-af6b0616.js';
39
+ import { A as ADInfeed } from './ADInfeed-5a2f924b.js';
40
40
  import { l as lodash } from './lodash-ec8c6b48.js';
41
- import { A as ADlgInfeed } from './ADlgInfeed-27ba8238.js';
41
+ import { A as ADlgInfeed } from './ADlgInfeed-c0a01f39.js';
42
42
 
43
43
  var MasterDeck = function (_React$Component) {
44
44
  _inherits(MasterDeck, _React$Component);
@@ -268,6 +268,7 @@ var MasterDeck = function (_React$Component) {
268
268
  content_placement: brandInsightAd.targeting.content_placement,
269
269
  document_url: brandInsightAd.targeting.document_url
270
270
  },
271
+ /* Passing refresh flag */
271
272
  refreshFlag: brandInsightAd.refreshFlag ? brandInsightAd.refreshFlag : false
272
273
  };
273
274
 
@@ -302,6 +303,7 @@ var MasterDeck = function (_React$Component) {
302
303
  document_url: brandInsightAd.targeting.document_url
303
304
  },
304
305
  _type: 'brandInsightAd',
306
+ /* Passing refresh flag */
305
307
  refreshFlag: brandInsightAd.refreshFlag ? brandInsightAd.refreshFlag : false
306
308
  };
307
309
 
@@ -37,9 +37,9 @@ import './_set-species-cede29f8.js';
37
37
  import './Segment.js';
38
38
  import './Beam.js';
39
39
  import './AdSlot.js';
40
- import './ADInfeed-af6b0616.js';
40
+ import './ADInfeed-5a2f924b.js';
41
41
  import './lodash-ec8c6b48.js';
42
- import './ADlgInfeed-27ba8238.js';
42
+ import './ADlgInfeed-c0a01f39.js';
43
43
  import './getContentCategory-15dcc413.js';
44
44
  import './AuthorComponent-00f13201.js';
45
45
  import { B as BlockContent } from './BlockContent-c409aca5.js';
@@ -49,7 +49,7 @@ import 'react-bootstrap';
49
49
  import './timeDifferenceCalc.js';
50
50
  import QueueDeckExpanded from './QueueDeckExpanded.js';
51
51
  import 'react-bootstrap/Button';
52
- import { g as getSerializers } from './index-273cc821.js';
52
+ import { g as getSerializers } from './index-3be21153.js';
53
53
  import './util-7700fc59.js';
54
54
  import './brightcove-react-player-loader.es-83f53e4e.js';
55
55
  import 'react-bootstrap/Pagination';
@@ -30,9 +30,9 @@ import './_set-species-cede29f8.js';
30
30
  import './Segment.js';
31
31
  import './Beam.js';
32
32
  import './AdSlot.js';
33
- import { A as ADInfeed } from './ADInfeed-af6b0616.js';
33
+ import { A as ADInfeed } from './ADInfeed-5a2f924b.js';
34
34
  import { l as lodash } from './lodash-ec8c6b48.js';
35
- import { A as ADlgInfeed } from './ADlgInfeed-27ba8238.js';
35
+ import { A as ADlgInfeed } from './ADlgInfeed-c0a01f39.js';
36
36
  import { g as getContentCategory } from './getContentCategory-15dcc413.js';
37
37
  import { A as AuthorComponent } from './AuthorComponent-00f13201.js';
38
38
  import { Container, Media } from 'react-bootstrap';
@@ -181,6 +181,7 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
181
181
  content_placement: brandInsightAd.targeting.content_placement,
182
182
  document_url: brandInsightAd.targeting.document_url
183
183
  },
184
+ /* Passing refresh flag */
184
185
  refreshFlag: brandInsightAd.refreshFlag ? brandInsightAd.refreshFlag : false
185
186
  };
186
187
 
@@ -221,6 +222,7 @@ var cardLoader = function cardLoader(data, builder, mapping, values, seoPaginate
221
222
  document_url: brandInsightAd.targeting.document_url
222
223
  },
223
224
  _type: 'brandInsightAd',
225
+ /* Passing refresh flag */
224
226
  refreshFlag: brandInsightAd.refreshFlag ? brandInsightAd.refreshFlag : false
225
227
  };
226
228
 
package/dist/esm/View.js CHANGED
@@ -43,7 +43,7 @@ import './iconBase-602d52fe.js';
43
43
  import Button from 'react-bootstrap/Button';
44
44
  import { _ as _defineProperty } from './defineProperty-b798470d.js';
45
45
  import Form from 'react-bootstrap/Form';
46
- import { I as InscreenSensor, r as renderAuthor, g as getSerializers } from './index-273cc821.js';
46
+ import { I as InscreenSensor, r as renderAuthor, g as getSerializers } from './index-3be21153.js';
47
47
  import './util-7700fc59.js';
48
48
  import './brightcove-react-player-loader.es-83f53e4e.js';
49
49
  import 'react-bootstrap/Pagination';
@@ -55,9 +55,9 @@ import { _ as _Object$keys } from './keys-fc2d4c34.js';
55
55
  import 'react-bootstrap/Dropdown';
56
56
  import { b as FaMinus, c as FaPlus } from './index.esm-cf08bf18.js';
57
57
  import getSeriesDetail from './getSeriesDetail.js';
58
- import './index-db3bb315.js';
59
- import getRelatedArticle from './getRelatedArticle.js';
58
+ import 'nookies';
60
59
  import getQuery from './getQuery.js';
60
+ import getRelatedArticle from './getRelatedArticle.js';
61
61
  import { g as getTargeting, a as getContentPlacementUrl } from './getTargeting-2acdec91.js';
62
62
  import getKeywords from './getKeywords.js';
63
63
  import urlFor from './urlFor.js';