@mjhls/mjh-framework 1.0.783 → 1.0.784
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 +1 -1
- package/dist/cjs/AD300x250.js +1 -2
- package/dist/cjs/AD300x250x600.js +1 -2
- package/dist/cjs/AD728x90.js +1 -2
- package/dist/cjs/ADFloatingFooter.js +1 -2
- package/dist/cjs/ADGutter.js +1 -2
- package/dist/cjs/ADSkyscraper.js +1 -2
- package/dist/cjs/ADSponsoredResources.js +1 -2
- package/dist/cjs/ADWebcast.js +1 -2
- package/dist/cjs/ADWelcome.js +1 -2
- package/dist/cjs/AdSlot.js +1 -2
- package/dist/cjs/AdSlotsProvider.js +1 -2
- package/dist/cjs/ArticleProgramLandingPage.js +2 -3
- package/dist/cjs/ArticleSeriesLandingPage.js +3 -4
- package/dist/cjs/Auth.js +1 -2
- package/dist/cjs/Beam.js +1 -2
- package/dist/cjs/CMEDeck.js +1 -2
- package/dist/cjs/Column2.js +1 -2
- package/dist/cjs/Column3.js +1 -2
- package/dist/cjs/DeckContent.js +2 -3
- package/dist/cjs/ExternalResources.js +2 -3
- package/dist/cjs/GridContent.js +3 -4
- package/dist/cjs/HamMagazine.js +1 -2
- package/dist/cjs/HorizontalArticleListing.js +2 -3
- package/dist/cjs/IssueLanding.js +3 -4
- package/dist/cjs/LeftNav.js +1 -2
- package/dist/cjs/MasterDeck.js +3 -4
- package/dist/cjs/MediaSeriesLanding.js +1 -2
- package/dist/cjs/NavDvm.js +1 -2
- package/dist/cjs/NavMagazine.js +1 -2
- package/dist/cjs/NavNative.js +1 -2
- package/dist/cjs/NavNormal.js +1 -2
- package/dist/cjs/PartnerDetailListing.js +4 -5
- package/dist/cjs/PubSection.js +3 -4
- package/dist/cjs/PubToc.js +1 -2
- package/dist/cjs/PublicationLanding.js +93 -14
- package/dist/cjs/QueueDeckExpanded.js +3 -4
- package/dist/cjs/Segment.js +1 -2
- package/dist/cjs/SideFooter.js +1 -2
- package/dist/cjs/TaxonomyDescription.js +2 -3
- package/dist/cjs/TemplateNormal.js +1 -2
- package/dist/cjs/VideoProgramLandingPage.js +2 -3
- package/dist/cjs/VideoSeriesFilter.js +1 -2
- package/dist/cjs/VideoSeriesLandingPage.js +3 -4
- package/dist/cjs/View.js +2 -3
- package/dist/cjs/{asyncToGenerator-2edcb6ad.js → asyncToGenerator-b6a175bf.js} +54 -6
- package/dist/cjs/getQuery.js +1 -1
- package/dist/cjs/getRelatedArticle.js +1 -2
- package/dist/cjs/getRootDocGroup.js +1 -2
- package/dist/cjs/getSerializers.js +2 -3
- package/dist/cjs/index.js +4 -5
- package/dist/esm/AD300x250.js +1 -2
- package/dist/esm/AD300x250x600.js +1 -2
- package/dist/esm/AD728x90.js +1 -2
- package/dist/esm/ADFloatingFooter.js +1 -2
- package/dist/esm/ADGutter.js +1 -2
- package/dist/esm/ADSkyscraper.js +1 -2
- package/dist/esm/ADSponsoredResources.js +1 -2
- package/dist/esm/ADWebcast.js +1 -2
- package/dist/esm/ADWelcome.js +1 -2
- package/dist/esm/AdSlot.js +1 -2
- package/dist/esm/AdSlotsProvider.js +1 -2
- package/dist/esm/ArticleProgramLandingPage.js +2 -3
- package/dist/esm/ArticleSeriesLandingPage.js +3 -4
- package/dist/esm/Auth.js +1 -2
- package/dist/esm/Beam.js +1 -2
- package/dist/esm/CMEDeck.js +1 -2
- package/dist/esm/Column2.js +1 -2
- package/dist/esm/Column3.js +1 -2
- package/dist/esm/DeckContent.js +2 -3
- package/dist/esm/ExternalResources.js +2 -3
- package/dist/esm/GridContent.js +3 -4
- package/dist/esm/HamMagazine.js +1 -2
- package/dist/esm/HorizontalArticleListing.js +2 -3
- package/dist/esm/IssueLanding.js +3 -4
- package/dist/esm/LeftNav.js +1 -2
- package/dist/esm/MasterDeck.js +3 -4
- package/dist/esm/MediaSeriesLanding.js +1 -2
- package/dist/esm/NavDvm.js +1 -2
- package/dist/esm/NavMagazine.js +1 -2
- package/dist/esm/NavNative.js +1 -2
- package/dist/esm/NavNormal.js +1 -2
- package/dist/esm/PartnerDetailListing.js +4 -5
- package/dist/esm/PubSection.js +3 -4
- package/dist/esm/PubToc.js +1 -2
- package/dist/esm/PublicationLanding.js +82 -3
- package/dist/esm/QueueDeckExpanded.js +3 -4
- package/dist/esm/Segment.js +1 -2
- package/dist/esm/SideFooter.js +1 -2
- package/dist/esm/TaxonomyDescription.js +2 -3
- package/dist/esm/TemplateNormal.js +1 -2
- package/dist/esm/VideoProgramLandingPage.js +2 -3
- package/dist/esm/VideoSeriesFilter.js +1 -2
- package/dist/esm/VideoSeriesLandingPage.js +3 -4
- package/dist/esm/View.js +2 -3
- package/dist/esm/{asyncToGenerator-2bd4099a.js → asyncToGenerator-585841c0.js} +49 -5
- package/dist/esm/getQuery.js +1 -1
- package/dist/esm/getRelatedArticle.js +1 -2
- package/dist/esm/getRootDocGroup.js +1 -2
- package/dist/esm/getSerializers.js +2 -3
- package/dist/esm/index.js +4 -5
- package/package.json +1 -1
- package/dist/cjs/_set-species-a8cfdb84.js +0 -57
- package/dist/esm/_set-species-494ed292.js +0 -52
- /package/dist/cjs/{ADInfeed-d1eceaf2.js → ADInfeed-1e53d7db.js} +0 -0
- /package/dist/cjs/{ADlgInfeed-24c693d8.js → ADlgInfeed-2494fd17.js} +0 -0
- /package/dist/cjs/{index-8ef858d4.js → index-2a34c7db.js} +0 -0
- /package/dist/esm/{ADInfeed-c12cd1ce.js → ADInfeed-94817c40.js} +0 -0
- /package/dist/esm/{ADlgInfeed-246a8787.js → ADlgInfeed-6124ee3c.js} +0 -0
- /package/dist/esm/{index-9b2f6ac4.js → index-f42d71f0.js} +0 -0
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
import { b as _anInstance, c as _forOf, d as _redefineAll, e as _setSpecies, a as _asyncToGenerator, r as regenerator, _ as _Promise } from './asyncToGenerator-585841c0.js';
|
|
2
|
+
import { _ as _extends } from './extends-31d65aba.js';
|
|
1
3
|
import { _ as _slicedToArray } from './slicedToArray-cdeaee08.js';
|
|
2
4
|
import { c as createCommonjsModule, u as unwrapExports } from './_commonjsHelpers-0c4b6f40.js';
|
|
3
5
|
import { _ as _objectCreate, a as _iterDefine, b as _wks, c as _setToStringTag } from './es6.string.iterator-aa6068a3.js';
|
|
4
6
|
import { _ as _iterStep } from './web.dom.iterable-035980f3.js';
|
|
5
7
|
import { b as _isObject, c as _ctx, d as _descriptors, e as _objectDp, f as _toObject, g as _iobject, h as _toLength, i as _global, j as _fails, k as _hide, _ as _export, l as _aFunction, a as _core } from './_to-object-97770c52.js';
|
|
6
|
-
import { _ as _anInstance, a as _forOf, b as _redefineAll, c as _setSpecies } from './_set-species-494ed292.js';
|
|
7
8
|
import { _ as _meta, a as _isArray } from './_is-array-674f71ec.js';
|
|
8
9
|
import { _ as _classof } from './core.get-iterator-method-d1d5ed02.js';
|
|
9
10
|
import { _ as _toConsumableArray } from './toConsumableArray-fa2dcda7.js';
|
|
@@ -14,7 +15,9 @@ import Dropdown from 'react-bootstrap/Dropdown';
|
|
|
14
15
|
import Card from 'react-bootstrap/Card';
|
|
15
16
|
import { useRouter } from 'next/router';
|
|
16
17
|
import { L as LazyLoad } from './index-752d1dae.js';
|
|
18
|
+
import './_library-528f1934.js';
|
|
17
19
|
import './_iter-detect-48516cd3.js';
|
|
20
|
+
import './_object-pie-33c40e79.js';
|
|
18
21
|
import 'react-dom';
|
|
19
22
|
import 'prop-types';
|
|
20
23
|
|
|
@@ -428,7 +431,8 @@ var PublicationLanding = function PublicationLanding(props) {
|
|
|
428
431
|
href = props.href;
|
|
429
432
|
props.pdf;
|
|
430
433
|
var _props$contentPlaceme = props.contentPlacement,
|
|
431
|
-
contentPlacement = _props$contentPlaceme === undefined ? '' : _props$contentPlaceme
|
|
434
|
+
contentPlacement = _props$contentPlaceme === undefined ? '' : _props$contentPlaceme,
|
|
435
|
+
client = props.client;
|
|
432
436
|
|
|
433
437
|
|
|
434
438
|
var router = useRouter();
|
|
@@ -452,6 +456,81 @@ var PublicationLanding = function PublicationLanding(props) {
|
|
|
452
456
|
activeContentPlacement = _useState6[0],
|
|
453
457
|
setActiveContentPlacement = _useState6[1];
|
|
454
458
|
|
|
459
|
+
useEffect(function () {
|
|
460
|
+
|
|
461
|
+
_asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee2() {
|
|
462
|
+
var _this = this;
|
|
463
|
+
|
|
464
|
+
var promises, articles;
|
|
465
|
+
return regenerator.wrap(function _callee2$(_context2) {
|
|
466
|
+
while (1) {
|
|
467
|
+
switch (_context2.prev = _context2.next) {
|
|
468
|
+
case 0:
|
|
469
|
+
if (!(issueData && issueData.length > 0 && client)) {
|
|
470
|
+
_context2.next = 12;
|
|
471
|
+
break;
|
|
472
|
+
}
|
|
473
|
+
|
|
474
|
+
_context2.prev = 1;
|
|
475
|
+
promises = issueData.map(function () {
|
|
476
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee(issue) {
|
|
477
|
+
var articlesQuery;
|
|
478
|
+
return regenerator.wrap(function _callee$(_context) {
|
|
479
|
+
while (1) {
|
|
480
|
+
switch (_context.prev = _context.next) {
|
|
481
|
+
case 0:
|
|
482
|
+
articlesQuery = '*[\n _type == \'article\' \n && !(_id in path("drafts.**"))\n && defined(title)\n && is_visible\n && defined(url)\n && defined(published) \n && dateTime(published) <= dateTime(now())\n && passwordLock != true\n && references(\'' + issue._id + '\')\n ][0...1]{_id}';
|
|
483
|
+
_context.t0 = _extends;
|
|
484
|
+
_context.t1 = {};
|
|
485
|
+
_context.t2 = issue;
|
|
486
|
+
_context.next = 6;
|
|
487
|
+
return client.fetch(articlesQuery);
|
|
488
|
+
|
|
489
|
+
case 6:
|
|
490
|
+
_context.t3 = _context.sent;
|
|
491
|
+
_context.t4 = {
|
|
492
|
+
articles: _context.t3
|
|
493
|
+
};
|
|
494
|
+
return _context.abrupt('return', (0, _context.t0)(_context.t1, _context.t2, _context.t4));
|
|
495
|
+
|
|
496
|
+
case 9:
|
|
497
|
+
case 'end':
|
|
498
|
+
return _context.stop();
|
|
499
|
+
}
|
|
500
|
+
}
|
|
501
|
+
}, _callee, _this);
|
|
502
|
+
}));
|
|
503
|
+
|
|
504
|
+
return function (_x) {
|
|
505
|
+
return _ref2.apply(this, arguments);
|
|
506
|
+
};
|
|
507
|
+
}());
|
|
508
|
+
_context2.next = 5;
|
|
509
|
+
return _Promise.all(promises);
|
|
510
|
+
|
|
511
|
+
case 5:
|
|
512
|
+
articles = _context2.sent;
|
|
513
|
+
|
|
514
|
+
setIssueData(articles);
|
|
515
|
+
|
|
516
|
+
_context2.next = 12;
|
|
517
|
+
break;
|
|
518
|
+
|
|
519
|
+
case 9:
|
|
520
|
+
_context2.prev = 9;
|
|
521
|
+
_context2.t0 = _context2['catch'](1);
|
|
522
|
+
|
|
523
|
+
console.error(_context2.t0);
|
|
524
|
+
|
|
525
|
+
case 12:
|
|
526
|
+
case 'end':
|
|
527
|
+
return _context2.stop();
|
|
528
|
+
}
|
|
529
|
+
}
|
|
530
|
+
}, _callee2, this, [[1, 9]]);
|
|
531
|
+
}))();
|
|
532
|
+
}, []);
|
|
533
|
+
|
|
455
534
|
useEffect(function () {
|
|
456
535
|
if (activeYear && activeContentPlacement && activeContentPlacement.id) {
|
|
457
536
|
router.push(router.pathname, '/' + (href ? href : 'publications') + '/' + publication.identifier.current + '?year=' + activeYear + '&cp=' + activeContentPlacement.id, { shallow: true });
|
|
@@ -608,7 +687,7 @@ var PublicationLanding = function PublicationLanding(props) {
|
|
|
608
687
|
React.createElement(
|
|
609
688
|
Card.Footer,
|
|
610
689
|
null,
|
|
611
|
-
issue.articles && issue.articles.length > 0 ? React.createElement(
|
|
690
|
+
issue && issue.articles && issue.articles.length > 0 ? React.createElement(
|
|
612
691
|
'a',
|
|
613
692
|
{ href: publication.identifier.current + '/' + issue.identifier.current, className: 'btn btn-primary' },
|
|
614
693
|
'View Issue'
|
|
@@ -12,10 +12,10 @@ import { useRouter } from 'next/router';
|
|
|
12
12
|
import { L as LazyLoad } from './index-752d1dae.js';
|
|
13
13
|
import { m as main_40 } from './main-1450d277.js';
|
|
14
14
|
import { c as clean_html_1 } from './entities-932b50cf.js';
|
|
15
|
-
import { A as ADInfeed } from './ADInfeed-
|
|
15
|
+
import { A as ADInfeed } from './ADInfeed-94817c40.js';
|
|
16
16
|
import { A as AuthorComponent } from './AuthorComponent-c7ff069f.js';
|
|
17
17
|
import { l as lodash } from './lodash-ad27652f.js';
|
|
18
|
-
import { A as ADlgInfeed } from './ADlgInfeed-
|
|
18
|
+
import { A as ADlgInfeed } from './ADlgInfeed-6124ee3c.js';
|
|
19
19
|
import { g as getContentCategory } from './getContentCategory-15dcc413.js';
|
|
20
20
|
import timeDifferenceCalc from './timeDifferenceCalc.js';
|
|
21
21
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
@@ -34,9 +34,8 @@ import './isSymbol-1981418f.js';
|
|
|
34
34
|
import './toNumber-2f7a84cd.js';
|
|
35
35
|
import './Beam.js';
|
|
36
36
|
import './stringify-d4839bab.js';
|
|
37
|
-
import './asyncToGenerator-
|
|
37
|
+
import './asyncToGenerator-585841c0.js';
|
|
38
38
|
import './_library-528f1934.js';
|
|
39
|
-
import './_set-species-494ed292.js';
|
|
40
39
|
import './Segment.js';
|
|
41
40
|
|
|
42
41
|
var urlFor = function urlFor(source, builder) {
|
package/dist/esm/Segment.js
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-
|
|
1
|
+
import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-585841c0.js';
|
|
2
2
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
3
3
|
import './es6.string.iterator-aa6068a3.js';
|
|
4
4
|
import './_to-object-97770c52.js';
|
|
5
5
|
import './web.dom.iterable-035980f3.js';
|
|
6
6
|
import './_library-528f1934.js';
|
|
7
7
|
import './core.get-iterator-method-d1d5ed02.js';
|
|
8
|
-
import './_set-species-494ed292.js';
|
|
9
8
|
import './_iter-detect-48516cd3.js';
|
|
10
9
|
|
|
11
10
|
require("babel-polyfill");
|
package/dist/esm/SideFooter.js
CHANGED
|
@@ -9,12 +9,11 @@ import './_to-object-97770c52.js';
|
|
|
9
9
|
import 'prop-types';
|
|
10
10
|
import './isSymbol-1981418f.js';
|
|
11
11
|
import './eq-b470f743.js';
|
|
12
|
-
import './asyncToGenerator-
|
|
12
|
+
import './asyncToGenerator-585841c0.js';
|
|
13
13
|
import './es6.string.iterator-aa6068a3.js';
|
|
14
14
|
import './web.dom.iterable-035980f3.js';
|
|
15
15
|
import './_library-528f1934.js';
|
|
16
16
|
import './core.get-iterator-method-d1d5ed02.js';
|
|
17
|
-
import './_set-species-494ed292.js';
|
|
18
17
|
import './_iter-detect-48516cd3.js';
|
|
19
18
|
|
|
20
19
|
var year = new Date().getFullYear();
|
|
@@ -1,17 +1,16 @@
|
|
|
1
|
-
import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-
|
|
1
|
+
import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-585841c0.js';
|
|
2
2
|
import { _ as _extends, a as _Object$assign } from './extends-31d65aba.js';
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import { useRouter } from 'next/router';
|
|
5
5
|
import Head from 'next/head';
|
|
6
6
|
import { B as BlockContent } from './BlockContent-d8cd739c.js';
|
|
7
|
-
import { g as getSerializers } from './index-
|
|
7
|
+
import { g as getSerializers } from './index-f42d71f0.js';
|
|
8
8
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
9
9
|
import './es6.string.iterator-aa6068a3.js';
|
|
10
10
|
import './_to-object-97770c52.js';
|
|
11
11
|
import './web.dom.iterable-035980f3.js';
|
|
12
12
|
import './_library-528f1934.js';
|
|
13
13
|
import './core.get-iterator-method-d1d5ed02.js';
|
|
14
|
-
import './_set-species-494ed292.js';
|
|
15
14
|
import './_iter-detect-48516cd3.js';
|
|
16
15
|
import './_object-pie-33c40e79.js';
|
|
17
16
|
import 'prop-types';
|
|
@@ -28,9 +28,8 @@ import './isSymbol-1981418f.js';
|
|
|
28
28
|
import './toNumber-2f7a84cd.js';
|
|
29
29
|
import './Beam.js';
|
|
30
30
|
import './stringify-d4839bab.js';
|
|
31
|
-
import './asyncToGenerator-
|
|
31
|
+
import './asyncToGenerator-585841c0.js';
|
|
32
32
|
import './_library-528f1934.js';
|
|
33
|
-
import './_set-species-494ed292.js';
|
|
34
33
|
import './_iter-detect-48516cd3.js';
|
|
35
34
|
import './Segment.js';
|
|
36
35
|
import './main-1450d277.js';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-
|
|
1
|
+
import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-585841c0.js';
|
|
2
2
|
import { _ as _extends } from './extends-31d65aba.js';
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import { B as BlockContent } from './BlockContent-d8cd739c.js';
|
|
5
5
|
import Col from 'react-bootstrap/Col';
|
|
6
6
|
import Form from 'react-bootstrap/Form';
|
|
7
7
|
import Button from 'react-bootstrap/Button';
|
|
8
|
-
import { g as getSerializers } from './index-
|
|
8
|
+
import { g as getSerializers } from './index-f42d71f0.js';
|
|
9
9
|
import VideoSeriesListing from './VideoSeriesListing.js';
|
|
10
10
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
11
11
|
import './es6.string.iterator-aa6068a3.js';
|
|
@@ -13,7 +13,6 @@ import './_to-object-97770c52.js';
|
|
|
13
13
|
import './web.dom.iterable-035980f3.js';
|
|
14
14
|
import './_library-528f1934.js';
|
|
15
15
|
import './core.get-iterator-method-d1d5ed02.js';
|
|
16
|
-
import './_set-species-494ed292.js';
|
|
17
16
|
import './_iter-detect-48516cd3.js';
|
|
18
17
|
import './_object-pie-33c40e79.js';
|
|
19
18
|
import 'prop-types';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-
|
|
1
|
+
import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-585841c0.js';
|
|
2
2
|
import { _ as _slicedToArray } from './slicedToArray-cdeaee08.js';
|
|
3
3
|
import React, { useState, useEffect } from 'react';
|
|
4
4
|
import { withRouter } from 'next/router';
|
|
@@ -9,7 +9,6 @@ import './_to-object-97770c52.js';
|
|
|
9
9
|
import './web.dom.iterable-035980f3.js';
|
|
10
10
|
import './_library-528f1934.js';
|
|
11
11
|
import './core.get-iterator-method-d1d5ed02.js';
|
|
12
|
-
import './_set-species-494ed292.js';
|
|
13
12
|
import './_iter-detect-48516cd3.js';
|
|
14
13
|
|
|
15
14
|
var _this = undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-
|
|
1
|
+
import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-585841c0.js';
|
|
2
2
|
import { _ as _typeof } from './typeof-e9cea9e8.js';
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import { m as moment } from './moment-bc12cb97.js';
|
|
@@ -12,7 +12,6 @@ import './_to-object-97770c52.js';
|
|
|
12
12
|
import './web.dom.iterable-035980f3.js';
|
|
13
13
|
import './_library-528f1934.js';
|
|
14
14
|
import './core.get-iterator-method-d1d5ed02.js';
|
|
15
|
-
import './_set-species-494ed292.js';
|
|
16
15
|
import './_iter-detect-48516cd3.js';
|
|
17
16
|
import './_is-array-674f71ec.js';
|
|
18
17
|
import './_object-pie-33c40e79.js';
|
|
@@ -38,13 +37,13 @@ import './index.es-c6222053.js';
|
|
|
38
37
|
import './visibility-sensor-082c757b.js';
|
|
39
38
|
import 'react-dom';
|
|
40
39
|
import './index-3f5c03b2.js';
|
|
41
|
-
import './ADlgInfeed-
|
|
40
|
+
import './ADlgInfeed-6124ee3c.js';
|
|
42
41
|
import './AdSlot.js';
|
|
43
42
|
import './Beam.js';
|
|
44
43
|
import './stringify-d4839bab.js';
|
|
45
44
|
import './Segment.js';
|
|
46
45
|
import './main-1450d277.js';
|
|
47
|
-
import './ADInfeed-
|
|
46
|
+
import './ADInfeed-94817c40.js';
|
|
48
47
|
import './index-752d1dae.js';
|
|
49
48
|
import './style-inject.es-1f59c1d0.js';
|
|
50
49
|
|
package/dist/esm/View.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-
|
|
1
|
+
import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-585841c0.js';
|
|
2
2
|
import { _ as _extends, a as _Object$assign } from './extends-31d65aba.js';
|
|
3
3
|
import { a as _getIterator, _ as _slicedToArray } from './slicedToArray-cdeaee08.js';
|
|
4
4
|
import React, { useState, useRef, useEffect, forwardRef } from 'react';
|
|
@@ -15,7 +15,7 @@ import FormControl from 'react-bootstrap/FormControl';
|
|
|
15
15
|
import Button from 'react-bootstrap/Button';
|
|
16
16
|
import { V as VisibilitySensor } from './visibility-sensor-082c757b.js';
|
|
17
17
|
import SocialShare from './SocialShare.js';
|
|
18
|
-
import { r as renderAuthor, g as getSerializers } from './index-
|
|
18
|
+
import { r as renderAuthor, g as getSerializers } from './index-f42d71f0.js';
|
|
19
19
|
import DFPAdSlot from './AdSlot.js';
|
|
20
20
|
import { S as SeriesSlider } from './SeriesSlider-6a1081ff.js';
|
|
21
21
|
import { g as getTargeting, a as getContentPlacementUrl } from './getTargeting-2d402d66.js';
|
|
@@ -38,7 +38,6 @@ import './_to-object-97770c52.js';
|
|
|
38
38
|
import './web.dom.iterable-035980f3.js';
|
|
39
39
|
import './_library-528f1934.js';
|
|
40
40
|
import './core.get-iterator-method-d1d5ed02.js';
|
|
41
|
-
import './_set-species-494ed292.js';
|
|
42
41
|
import './_iter-detect-48516cd3.js';
|
|
43
42
|
import './_object-pie-33c40e79.js';
|
|
44
43
|
import 'prop-types';
|
|
@@ -2,10 +2,9 @@ import { c as createCommonjsModule, u as unwrapExports } from './_commonjsHelper
|
|
|
2
2
|
import { b as _wks, g as _html, c as _setToStringTag } from './es6.string.iterator-aa6068a3.js';
|
|
3
3
|
import './web.dom.iterable-035980f3.js';
|
|
4
4
|
import { _ as _library } from './_library-528f1934.js';
|
|
5
|
-
import { o as _anObject, l as _aFunction, i as _global, x as _cof,
|
|
6
|
-
import { _ as _classof } from './core.get-iterator-method-d1d5ed02.js';
|
|
7
|
-
import {
|
|
8
|
-
import { _ as _iterDetect } from './_iter-detect-48516cd3.js';
|
|
5
|
+
import { c as _ctx, h as _toLength, o as _anObject, l as _aFunction, i as _global, x as _cof, y as _domCreate, b as _isObject, k as _hide, a as _core, d as _descriptors, e as _objectDp, _ as _export } from './_to-object-97770c52.js';
|
|
6
|
+
import { c as core_getIteratorMethod, _ as _classof } from './core.get-iterator-method-d1d5ed02.js';
|
|
7
|
+
import { a as _isArrayIter, b as _iterCall, _ as _iterDetect } from './_iter-detect-48516cd3.js';
|
|
9
8
|
|
|
10
9
|
var runtime = createCommonjsModule(function (module) {
|
|
11
10
|
/**
|
|
@@ -772,6 +771,34 @@ if (hadRuntime) {
|
|
|
772
771
|
|
|
773
772
|
var regenerator = runtimeModule;
|
|
774
773
|
|
|
774
|
+
var _anInstance = function (it, Constructor, name, forbiddenField) {
|
|
775
|
+
if (!(it instanceof Constructor) || (forbiddenField !== undefined && forbiddenField in it)) {
|
|
776
|
+
throw TypeError(name + ': incorrect invocation!');
|
|
777
|
+
} return it;
|
|
778
|
+
};
|
|
779
|
+
|
|
780
|
+
var _forOf = createCommonjsModule(function (module) {
|
|
781
|
+
var BREAK = {};
|
|
782
|
+
var RETURN = {};
|
|
783
|
+
var exports = module.exports = function (iterable, entries, fn, that, ITERATOR) {
|
|
784
|
+
var iterFn = ITERATOR ? function () { return iterable; } : core_getIteratorMethod(iterable);
|
|
785
|
+
var f = _ctx(fn, that, entries ? 2 : 1);
|
|
786
|
+
var index = 0;
|
|
787
|
+
var length, step, iterator, result;
|
|
788
|
+
if (typeof iterFn != 'function') throw TypeError(iterable + ' is not iterable!');
|
|
789
|
+
// fast case for arrays with default iterator
|
|
790
|
+
if (_isArrayIter(iterFn)) for (length = _toLength(iterable.length); length > index; index++) {
|
|
791
|
+
result = entries ? f(_anObject(step = iterable[index])[0], step[1]) : f(iterable[index]);
|
|
792
|
+
if (result === BREAK || result === RETURN) return result;
|
|
793
|
+
} else for (iterator = iterFn.call(iterable); !(step = iterator.next()).done;) {
|
|
794
|
+
result = _iterCall(iterator, f, step.value, entries);
|
|
795
|
+
if (result === BREAK || result === RETURN) return result;
|
|
796
|
+
}
|
|
797
|
+
};
|
|
798
|
+
exports.BREAK = BREAK;
|
|
799
|
+
exports.RETURN = RETURN;
|
|
800
|
+
});
|
|
801
|
+
|
|
775
802
|
// 7.3.20 SpeciesConstructor(O, defaultConstructor)
|
|
776
803
|
|
|
777
804
|
|
|
@@ -991,6 +1018,23 @@ var _promiseResolve = function (C, x) {
|
|
|
991
1018
|
return promiseCapability.promise;
|
|
992
1019
|
};
|
|
993
1020
|
|
|
1021
|
+
var _redefineAll = function (target, src, safe) {
|
|
1022
|
+
for (var key in src) {
|
|
1023
|
+
if (safe && target[key]) target[key] = src[key];
|
|
1024
|
+
else _hide(target, key, src[key]);
|
|
1025
|
+
} return target;
|
|
1026
|
+
};
|
|
1027
|
+
|
|
1028
|
+
var SPECIES$1 = _wks('species');
|
|
1029
|
+
|
|
1030
|
+
var _setSpecies = function (KEY) {
|
|
1031
|
+
var C = typeof _core[KEY] == 'function' ? _core[KEY] : _global[KEY];
|
|
1032
|
+
if (_descriptors && C && !C[SPECIES$1]) _objectDp.f(C, SPECIES$1, {
|
|
1033
|
+
configurable: true,
|
|
1034
|
+
get: function () { return this; }
|
|
1035
|
+
});
|
|
1036
|
+
};
|
|
1037
|
+
|
|
994
1038
|
var task = _task.set;
|
|
995
1039
|
var microtask = _microtask();
|
|
996
1040
|
|
|
@@ -1342,4 +1386,4 @@ exports.default = function (fn) {
|
|
|
1342
1386
|
|
|
1343
1387
|
var _asyncToGenerator = unwrapExports(asyncToGenerator);
|
|
1344
1388
|
|
|
1345
|
-
export { _Promise as _, _asyncToGenerator as a, regenerator as r };
|
|
1389
|
+
export { _Promise as _, _asyncToGenerator as a, _anInstance as b, _forOf as c, _redefineAll as d, _setSpecies as e, regenerator as r };
|
package/dist/esm/getQuery.js
CHANGED
|
@@ -12,7 +12,7 @@ var getQuery = function getQuery(type) {
|
|
|
12
12
|
case 'article':
|
|
13
13
|
return '*[\n _type == "article"\n && !(_id in path("drafts.**"))\n && defined(title)\n && defined(url)\n && url.current == $url\n ' + conditions + '\n ][0]{\n ' + params + '\n title,\n published,\n summary,\n thumbnail,\n ...,\n passwordLock,\n password,\n issueGroup-> { _id, name, identifier, parent-> },\n "authorDetails": authorMapping[]->{ displayName, url, profileImage, biography },\n body[] {\n ...,\n upload_doc {\n _type,\n asset->\n },\n uploadAudio {\n _type,\n asset->\n },\n medias[]{\n ...,\n upload_doc {\n _type,\n asset-> \n } \n },\n articles[]{\n ...,\n "authorDetails": authorMapping[]->{ displayName, url, profileImage, biography },\n text[]{\n ...,\n upload_doc {\n _type,\n asset->\n },\n uploadAudio {\n _type,\n asset->\n },\n }\n }\n },\n \'content_placement\': taxonomyMapping[]-> {\n ...,\n \'ancestor\': parent->parent->identifier,\n \'parent\': parent->identifier,\n \'name\': name,\n \'path\': identifier\n },\n documentGroup-> {\n _id,\n name,\n thumbnail,\n parent->{...,parent->},\n isShow,\n isSeries,\n \'path\': identifier.current\n },\n documentGroupMapping[]-> {\n _id,\n name,\n thumbnail,\n parent->{...,parent->},\n isShow,\n \'path\': identifier.current\n },\n \'category\':contentCategory->{\n name,\n disableAds\n },\n \'issue\' : *[_type == \'publication\' && !(_id in path("drafts.**")) && is_visible == true && _id == ^.issueGroup._ref][0] {\n name,\n volume,\n \'issueNumber\': number,\n \'articleSource\': source,\n \'path\': identifier.current,\n \'publication\' : *[_type == \'publication\' && !(_id in path("drafts.**")) && is_visible == true && _id == ^.parent._ref][0] {\n name,\n \'path\': identifier.current\n },\n \'url\' : pdf.asset-> url\n }\n\n }';
|
|
14
14
|
case 'publication':
|
|
15
|
-
return '*[_type == \'publication\'\n && identifier.current == $publication\n ' + conditions + '][0] {\n ' + params + '\n ...,\n \'issues\': *[_type == \'publication\'\n && is_visible\n && references(^._id)\n && defined(identifier)] {\n ...,\n taxonomyMapping[]->,\n pdf{asset->},\n
|
|
15
|
+
return '*[_type == \'publication\'\n && identifier.current == $publication\n ' + conditions + '][0] {\n ' + params + '\n ...,\n \'issues\': *[_type == \'publication\'\n && is_visible\n && references(^._id)\n && defined(identifier)] {\n ...,\n taxonomyMapping[]->,\n pdf{asset->},\n } | order(year desc, month desc)\n }';
|
|
16
16
|
case 'issue':
|
|
17
17
|
return '*[_type == \'publication\'\n && identifier.current == $publication\n ' + conditions + '][0] {\n ' + params + '\n ...,\n \'issue\': *[_type == \'publication\'\n && references(^._id)\n && identifier.current == $issue][0] {\n ...,\n \'articles\': *[_type == \'article\'\n && !(_id in path("drafts.**"))\n && defined(title)\n && is_visible\n && defined(url)\n && defined(published) \n && dateTime(published) <= dateTime(now())\n && passwordLock != true\n && references(^._id)] | order(published desc) {\n ...,\n authorMapping[0]->,\n contentCategory->,\n issueSection-> {\n name\n }\n }\n }\n }';
|
|
18
18
|
case 'externalResources':
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-
|
|
1
|
+
import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-585841c0.js';
|
|
2
2
|
import { c as createCommonjsModule, u as unwrapExports, a as commonjsGlobal } from './_commonjsHelpers-0c4b6f40.js';
|
|
3
3
|
import { c as cookie } from './index-db3bb315.js';
|
|
4
4
|
import getQuery from './getQuery.js';
|
|
@@ -7,7 +7,6 @@ import './_to-object-97770c52.js';
|
|
|
7
7
|
import './web.dom.iterable-035980f3.js';
|
|
8
8
|
import './_library-528f1934.js';
|
|
9
9
|
import './core.get-iterator-method-d1d5ed02.js';
|
|
10
|
-
import './_set-species-494ed292.js';
|
|
11
10
|
import './_iter-detect-48516cd3.js';
|
|
12
11
|
|
|
13
12
|
var defaultParseOptions = {
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-
|
|
1
|
+
import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-585841c0.js';
|
|
2
2
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
3
3
|
import './es6.string.iterator-aa6068a3.js';
|
|
4
4
|
import './_to-object-97770c52.js';
|
|
5
5
|
import './web.dom.iterable-035980f3.js';
|
|
6
6
|
import './_library-528f1934.js';
|
|
7
7
|
import './core.get-iterator-method-d1d5ed02.js';
|
|
8
|
-
import './_set-species-494ed292.js';
|
|
9
8
|
import './_iter-detect-48516cd3.js';
|
|
10
9
|
|
|
11
10
|
var _this = undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import 'react';
|
|
2
|
-
export { g as default } from './index-
|
|
2
|
+
export { g as default } from './index-f42d71f0.js';
|
|
3
3
|
import './BlockContent-d8cd739c.js';
|
|
4
4
|
import './entities-932b50cf.js';
|
|
5
5
|
import './slicedToArray-cdeaee08.js';
|
|
@@ -17,9 +17,8 @@ import './index-c7e2ac95.js';
|
|
|
17
17
|
import './util-3ab476bf.js';
|
|
18
18
|
import './Beam.js';
|
|
19
19
|
import './stringify-d4839bab.js';
|
|
20
|
-
import './asyncToGenerator-
|
|
20
|
+
import './asyncToGenerator-585841c0.js';
|
|
21
21
|
import './_library-528f1934.js';
|
|
22
|
-
import './_set-species-494ed292.js';
|
|
23
22
|
import './_iter-detect-48516cd3.js';
|
|
24
23
|
import './Segment.js';
|
|
25
24
|
import './main-1450d277.js';
|
package/dist/esm/index.js
CHANGED
|
@@ -78,7 +78,7 @@ export { default as VerticalHero } from './VerticalHero.js';
|
|
|
78
78
|
export { default as YahooHero } from './YahooHero.js';
|
|
79
79
|
export { default as GridHero } from './GridHero.js';
|
|
80
80
|
export { default as ConferenceArticleCard } from './ConferenceArticleCard.js';
|
|
81
|
-
export { g as getSerializers } from './index-
|
|
81
|
+
export { g as getSerializers } from './index-f42d71f0.js';
|
|
82
82
|
export { default as Beam } from './Beam.js';
|
|
83
83
|
export { default as Segment } from './Segment.js';
|
|
84
84
|
export { default as KMTracker } from './KMTracker.js';
|
|
@@ -125,10 +125,10 @@ import './visibility-sensor-082c757b.js';
|
|
|
125
125
|
import 'react-dom';
|
|
126
126
|
import './main-1450d277.js';
|
|
127
127
|
import './entities-932b50cf.js';
|
|
128
|
-
import './ADInfeed-
|
|
128
|
+
import './ADInfeed-94817c40.js';
|
|
129
129
|
import './slicedToArray-cdeaee08.js';
|
|
130
130
|
import './lodash-ad27652f.js';
|
|
131
|
-
import './ADlgInfeed-
|
|
131
|
+
import './ADlgInfeed-6124ee3c.js';
|
|
132
132
|
import './getContentCategory-15dcc413.js';
|
|
133
133
|
import './get-1e515072.js';
|
|
134
134
|
import './eq-b470f743.js';
|
|
@@ -142,8 +142,7 @@ import 'react-bootstrap';
|
|
|
142
142
|
import './timeDifferenceCalc.js';
|
|
143
143
|
import './index.esm-3fdda599.js';
|
|
144
144
|
import './iconBase-602d52fe.js';
|
|
145
|
-
import './asyncToGenerator-
|
|
146
|
-
import './_set-species-494ed292.js';
|
|
145
|
+
import './asyncToGenerator-585841c0.js';
|
|
147
146
|
import 'react-bootstrap/Button';
|
|
148
147
|
import './defineProperty-ea516b15.js';
|
|
149
148
|
import './_object-to-array-8f409e54.js';
|
package/package.json
CHANGED
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var _commonjsHelpers = require('./_commonjsHelpers-06173234.js');
|
|
4
|
-
var _toObject = require('./_to-object-821a2927.js');
|
|
5
|
-
var _iterDetect = require('./_iter-detect-2613ffa1.js');
|
|
6
|
-
var core_getIteratorMethod = require('./core.get-iterator-method-b4615fd3.js');
|
|
7
|
-
var es6_string_iterator = require('./es6.string.iterator-20d42c53.js');
|
|
8
|
-
|
|
9
|
-
var _anInstance = function (it, Constructor, name, forbiddenField) {
|
|
10
|
-
if (!(it instanceof Constructor) || (forbiddenField !== undefined && forbiddenField in it)) {
|
|
11
|
-
throw TypeError(name + ': incorrect invocation!');
|
|
12
|
-
} return it;
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
var _forOf = _commonjsHelpers.createCommonjsModule(function (module) {
|
|
16
|
-
var BREAK = {};
|
|
17
|
-
var RETURN = {};
|
|
18
|
-
var exports = module.exports = function (iterable, entries, fn, that, ITERATOR) {
|
|
19
|
-
var iterFn = ITERATOR ? function () { return iterable; } : core_getIteratorMethod.core_getIteratorMethod(iterable);
|
|
20
|
-
var f = _toObject._ctx(fn, that, entries ? 2 : 1);
|
|
21
|
-
var index = 0;
|
|
22
|
-
var length, step, iterator, result;
|
|
23
|
-
if (typeof iterFn != 'function') throw TypeError(iterable + ' is not iterable!');
|
|
24
|
-
// fast case for arrays with default iterator
|
|
25
|
-
if (_iterDetect._isArrayIter(iterFn)) for (length = _toObject._toLength(iterable.length); length > index; index++) {
|
|
26
|
-
result = entries ? f(_toObject._anObject(step = iterable[index])[0], step[1]) : f(iterable[index]);
|
|
27
|
-
if (result === BREAK || result === RETURN) return result;
|
|
28
|
-
} else for (iterator = iterFn.call(iterable); !(step = iterator.next()).done;) {
|
|
29
|
-
result = _iterDetect._iterCall(iterator, f, step.value, entries);
|
|
30
|
-
if (result === BREAK || result === RETURN) return result;
|
|
31
|
-
}
|
|
32
|
-
};
|
|
33
|
-
exports.BREAK = BREAK;
|
|
34
|
-
exports.RETURN = RETURN;
|
|
35
|
-
});
|
|
36
|
-
|
|
37
|
-
var _redefineAll = function (target, src, safe) {
|
|
38
|
-
for (var key in src) {
|
|
39
|
-
if (safe && target[key]) target[key] = src[key];
|
|
40
|
-
else _toObject._hide(target, key, src[key]);
|
|
41
|
-
} return target;
|
|
42
|
-
};
|
|
43
|
-
|
|
44
|
-
var SPECIES = es6_string_iterator._wks('species');
|
|
45
|
-
|
|
46
|
-
var _setSpecies = function (KEY) {
|
|
47
|
-
var C = typeof _toObject._core[KEY] == 'function' ? _toObject._core[KEY] : _toObject._global[KEY];
|
|
48
|
-
if (_toObject._descriptors && C && !C[SPECIES]) _toObject._objectDp.f(C, SPECIES, {
|
|
49
|
-
configurable: true,
|
|
50
|
-
get: function () { return this; }
|
|
51
|
-
});
|
|
52
|
-
};
|
|
53
|
-
|
|
54
|
-
exports._anInstance = _anInstance;
|
|
55
|
-
exports._forOf = _forOf;
|
|
56
|
-
exports._redefineAll = _redefineAll;
|
|
57
|
-
exports._setSpecies = _setSpecies;
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { c as createCommonjsModule } from './_commonjsHelpers-0c4b6f40.js';
|
|
2
|
-
import { c as _ctx, h as _toLength, o as _anObject, k as _hide, a as _core, i as _global, d as _descriptors, e as _objectDp } from './_to-object-97770c52.js';
|
|
3
|
-
import { a as _isArrayIter, b as _iterCall } from './_iter-detect-48516cd3.js';
|
|
4
|
-
import { c as core_getIteratorMethod } from './core.get-iterator-method-d1d5ed02.js';
|
|
5
|
-
import { b as _wks } from './es6.string.iterator-aa6068a3.js';
|
|
6
|
-
|
|
7
|
-
var _anInstance = function (it, Constructor, name, forbiddenField) {
|
|
8
|
-
if (!(it instanceof Constructor) || (forbiddenField !== undefined && forbiddenField in it)) {
|
|
9
|
-
throw TypeError(name + ': incorrect invocation!');
|
|
10
|
-
} return it;
|
|
11
|
-
};
|
|
12
|
-
|
|
13
|
-
var _forOf = createCommonjsModule(function (module) {
|
|
14
|
-
var BREAK = {};
|
|
15
|
-
var RETURN = {};
|
|
16
|
-
var exports = module.exports = function (iterable, entries, fn, that, ITERATOR) {
|
|
17
|
-
var iterFn = ITERATOR ? function () { return iterable; } : core_getIteratorMethod(iterable);
|
|
18
|
-
var f = _ctx(fn, that, entries ? 2 : 1);
|
|
19
|
-
var index = 0;
|
|
20
|
-
var length, step, iterator, result;
|
|
21
|
-
if (typeof iterFn != 'function') throw TypeError(iterable + ' is not iterable!');
|
|
22
|
-
// fast case for arrays with default iterator
|
|
23
|
-
if (_isArrayIter(iterFn)) for (length = _toLength(iterable.length); length > index; index++) {
|
|
24
|
-
result = entries ? f(_anObject(step = iterable[index])[0], step[1]) : f(iterable[index]);
|
|
25
|
-
if (result === BREAK || result === RETURN) return result;
|
|
26
|
-
} else for (iterator = iterFn.call(iterable); !(step = iterator.next()).done;) {
|
|
27
|
-
result = _iterCall(iterator, f, step.value, entries);
|
|
28
|
-
if (result === BREAK || result === RETURN) return result;
|
|
29
|
-
}
|
|
30
|
-
};
|
|
31
|
-
exports.BREAK = BREAK;
|
|
32
|
-
exports.RETURN = RETURN;
|
|
33
|
-
});
|
|
34
|
-
|
|
35
|
-
var _redefineAll = function (target, src, safe) {
|
|
36
|
-
for (var key in src) {
|
|
37
|
-
if (safe && target[key]) target[key] = src[key];
|
|
38
|
-
else _hide(target, key, src[key]);
|
|
39
|
-
} return target;
|
|
40
|
-
};
|
|
41
|
-
|
|
42
|
-
var SPECIES = _wks('species');
|
|
43
|
-
|
|
44
|
-
var _setSpecies = function (KEY) {
|
|
45
|
-
var C = typeof _core[KEY] == 'function' ? _core[KEY] : _global[KEY];
|
|
46
|
-
if (_descriptors && C && !C[SPECIES]) _objectDp.f(C, SPECIES, {
|
|
47
|
-
configurable: true,
|
|
48
|
-
get: function () { return this; }
|
|
49
|
-
});
|
|
50
|
-
};
|
|
51
|
-
|
|
52
|
-
export { _anInstance as _, _forOf as a, _redefineAll as b, _setSpecies as c };
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|