@mjhls/mjh-framework 1.0.919-TEST-V2 → 1.0.920
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/ArticleProgramLandingPage.js +2 -4
- package/dist/cjs/ExternalResources.js +1 -3
- package/dist/cjs/HorizontalArticleListing.js +2 -4
- package/dist/cjs/IssueLanding.js +2 -4
- package/dist/cjs/{MediaSeriesCard-7e1ebe32.js → MediaSeriesCard-34235827.js} +1 -1
- package/dist/cjs/MediaSeriesLanding.js +3 -5
- package/dist/cjs/MediaSeriesLandingPaginated.js +2 -4
- package/dist/cjs/PartnerDetailListing.js +2 -4
- package/dist/cjs/PartnerDetailListingPaginated.js +1 -3
- package/dist/cjs/TaxonomyDescription.js +2 -4
- package/dist/cjs/VideoProgramLandingPage.js +1 -2
- package/dist/cjs/View.js +7 -2
- package/dist/cjs/getQuery.js +1 -1
- package/dist/cjs/getSerializers.js +2 -4
- package/dist/cjs/{index-619b5600.js → index-f9f5f7c0.js} +22 -327
- package/dist/cjs/index.js +1 -1
- package/dist/esm/ArticleProgramLandingPage.js +2 -4
- package/dist/esm/ExternalResources.js +1 -3
- package/dist/esm/HorizontalArticleListing.js +2 -4
- package/dist/esm/IssueLanding.js +2 -4
- package/dist/esm/{MediaSeriesCard-ca3c348f.js → MediaSeriesCard-8a9b91e6.js} +1 -1
- package/dist/esm/MediaSeriesLanding.js +3 -5
- package/dist/esm/MediaSeriesLandingPaginated.js +2 -4
- package/dist/esm/PartnerDetailListing.js +2 -4
- package/dist/esm/PartnerDetailListingPaginated.js +1 -3
- package/dist/esm/TaxonomyDescription.js +2 -4
- package/dist/esm/VideoProgramLandingPage.js +1 -2
- package/dist/esm/View.js +7 -2
- package/dist/esm/getQuery.js +1 -1
- package/dist/esm/getSerializers.js +2 -4
- package/dist/esm/{index-47a80fcc.js → index-4d8a8743.js} +25 -328
- package/dist/esm/index.js +1 -1
- package/package.json +1 -2
|
@@ -3,13 +3,13 @@ import { _ as _typeof } from './typeof-e9fc0c5d.js';
|
|
|
3
3
|
import { _ as _extends } from './extends-6d8e3924.js';
|
|
4
4
|
import { _ as _slicedToArray } from './slicedToArray-6ebcbfea.js';
|
|
5
5
|
import React__default, { useState, useEffect } from 'react';
|
|
6
|
-
import { M as MediaSeriesCard, D as DropdownButton, a as Dropdown } from './MediaSeriesCard-
|
|
6
|
+
import { M as MediaSeriesCard, D as DropdownButton, a as Dropdown } from './MediaSeriesCard-8a9b91e6.js';
|
|
7
7
|
import './index-98ca9cec.js';
|
|
8
8
|
import 'react-dom';
|
|
9
9
|
import Link from 'next/link';
|
|
10
10
|
import { B as BlockContent } from './BlockContent-1e73bd2c.js';
|
|
11
11
|
import MasterDeck from './MasterDeckPaginated.js';
|
|
12
|
-
import { g as getSerializers } from './index-
|
|
12
|
+
import { g as getSerializers } from './index-4d8a8743.js';
|
|
13
13
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
14
14
|
import './core.get-iterator-method-ea258bb1.js';
|
|
15
15
|
import './web.dom.iterable-ab4dea5c.js';
|
|
@@ -54,8 +54,6 @@ import './index-c7e2ac95.js';
|
|
|
54
54
|
import './util-8ed16d48.js';
|
|
55
55
|
import './urlForFile-b69adffc.js';
|
|
56
56
|
import './brightcove-react-player-loader.es-57a70a56.js';
|
|
57
|
-
import 'react-bootstrap/Modal';
|
|
58
|
-
import 'react-bootstrap/Form';
|
|
59
57
|
import './GroupDeck.js';
|
|
60
58
|
import './smoothscroll-fa4e3f8c.js';
|
|
61
59
|
import './SocialShare.js';
|
|
@@ -11,7 +11,7 @@ import QueueDeckExpanded from './QueueDeckExpanded.js';
|
|
|
11
11
|
import Breadcrumbs from './Breadcrumbs.js';
|
|
12
12
|
import Feature from './Feature.js';
|
|
13
13
|
import urlFor from './urlFor.js';
|
|
14
|
-
import { g as getSerializers } from './index-
|
|
14
|
+
import { g as getSerializers } from './index-4d8a8743.js';
|
|
15
15
|
import { B as BlockContent } from './BlockContent-1e73bd2c.js';
|
|
16
16
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
17
17
|
import './core.get-iterator-method-ea258bb1.js';
|
|
@@ -55,15 +55,13 @@ import './urlForFile-b69adffc.js';
|
|
|
55
55
|
import './typeof-e9fc0c5d.js';
|
|
56
56
|
import './_is-array-8d21b9e3.js';
|
|
57
57
|
import './brightcove-react-player-loader.es-57a70a56.js';
|
|
58
|
-
import 'react-bootstrap/Modal';
|
|
59
|
-
import 'react-bootstrap/Button';
|
|
60
|
-
import 'react-bootstrap/Form';
|
|
61
58
|
import './GroupDeck.js';
|
|
62
59
|
import './SocialShare.js';
|
|
63
60
|
import 'next/head';
|
|
64
61
|
import 'react-share';
|
|
65
62
|
import './_object-to-array-2300e51b.js';
|
|
66
63
|
import 'react-bootstrap/Pagination';
|
|
64
|
+
import 'react-bootstrap/Button';
|
|
67
65
|
import 'react-bootstrap/Row';
|
|
68
66
|
import 'react-bootstrap/Col';
|
|
69
67
|
import './inherits-a6ba2ec4.js';
|
|
@@ -11,7 +11,7 @@ import QueueDeckExpanded from './QueueDeckExpandedPaginated.js';
|
|
|
11
11
|
import Breadcrumbs from './Breadcrumbs.js';
|
|
12
12
|
import Feature from './Feature.js';
|
|
13
13
|
import urlFor from './urlFor.js';
|
|
14
|
-
import { g as getSerializers } from './index-
|
|
14
|
+
import { g as getSerializers } from './index-4d8a8743.js';
|
|
15
15
|
import { B as BlockContent } from './BlockContent-1e73bd2c.js';
|
|
16
16
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
17
17
|
import './core.get-iterator-method-ea258bb1.js';
|
|
@@ -58,8 +58,6 @@ import './urlForFile-b69adffc.js';
|
|
|
58
58
|
import './typeof-e9fc0c5d.js';
|
|
59
59
|
import './_is-array-8d21b9e3.js';
|
|
60
60
|
import './brightcove-react-player-loader.es-57a70a56.js';
|
|
61
|
-
import 'react-bootstrap/Modal';
|
|
62
|
-
import 'react-bootstrap/Form';
|
|
63
61
|
import './GroupDeck.js';
|
|
64
62
|
import './SocialShare.js';
|
|
65
63
|
import 'next/head';
|
|
@@ -4,7 +4,7 @@ import React__default from 'react';
|
|
|
4
4
|
import { useRouter } from 'next/router';
|
|
5
5
|
import Head from 'next/head';
|
|
6
6
|
import { B as BlockContent } from './BlockContent-1e73bd2c.js';
|
|
7
|
-
import { g as getSerializers } from './index-
|
|
7
|
+
import { g as getSerializers } from './index-4d8a8743.js';
|
|
8
8
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
9
9
|
import './core.get-iterator-method-ea258bb1.js';
|
|
10
10
|
import './web.dom.iterable-ab4dea5c.js';
|
|
@@ -30,9 +30,6 @@ import 'react-dom';
|
|
|
30
30
|
import './typeof-e9fc0c5d.js';
|
|
31
31
|
import './_is-array-8d21b9e3.js';
|
|
32
32
|
import './brightcove-react-player-loader.es-57a70a56.js';
|
|
33
|
-
import 'react-bootstrap/Modal';
|
|
34
|
-
import 'react-bootstrap/Button';
|
|
35
|
-
import 'react-bootstrap/Form';
|
|
36
33
|
import './GroupDeck.js';
|
|
37
34
|
import './smoothscroll-fa4e3f8c.js';
|
|
38
35
|
import './moment-bc12cb97.js';
|
|
@@ -41,6 +38,7 @@ import 'react-share';
|
|
|
41
38
|
import './_object-to-array-2300e51b.js';
|
|
42
39
|
import './toConsumableArray-f7074d7c.js';
|
|
43
40
|
import 'react-bootstrap/Pagination';
|
|
41
|
+
import 'react-bootstrap/Button';
|
|
44
42
|
import './entities-6d9154b4.js';
|
|
45
43
|
import './AdSlot.js';
|
|
46
44
|
import './debounce-533d9748.js';
|
|
@@ -5,7 +5,7 @@ import { B as BlockContent } from './BlockContent-1e73bd2c.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-4d8a8743.js';
|
|
9
9
|
import VideoSeriesListing from './VideoSeriesListing.js';
|
|
10
10
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
11
11
|
import './core.get-iterator-method-ea258bb1.js';
|
|
@@ -33,7 +33,6 @@ import 'react-dom';
|
|
|
33
33
|
import './typeof-e9fc0c5d.js';
|
|
34
34
|
import './_is-array-8d21b9e3.js';
|
|
35
35
|
import './brightcove-react-player-loader.es-57a70a56.js';
|
|
36
|
-
import 'react-bootstrap/Modal';
|
|
37
36
|
import './GroupDeck.js';
|
|
38
37
|
import './smoothscroll-fa4e3f8c.js';
|
|
39
38
|
import './moment-bc12cb97.js';
|
package/dist/esm/View.js
CHANGED
|
@@ -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-72fd8f8b.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-4d8a8743.js';
|
|
19
19
|
import DFPAdSlot from './AdSlot.js';
|
|
20
20
|
import { S as SeriesSlider } from './SeriesSlider-45adb8dc.js';
|
|
21
21
|
import { g as getTargeting, a as getContentPlacementUrl } from './getTargeting-42f9b439.js';
|
|
@@ -51,7 +51,6 @@ import './util-8ed16d48.js';
|
|
|
51
51
|
import './Beam.js';
|
|
52
52
|
import './Segment.js';
|
|
53
53
|
import './brightcove-react-player-loader.es-57a70a56.js';
|
|
54
|
-
import 'react-bootstrap/Modal';
|
|
55
54
|
import './GroupDeck.js';
|
|
56
55
|
import './smoothscroll-fa4e3f8c.js';
|
|
57
56
|
import './_is-array-8d21b9e3.js';
|
|
@@ -720,6 +719,9 @@ var Article = forwardRef(function (props, ref) {
|
|
|
720
719
|
var relatedLinks = [];
|
|
721
720
|
if (documentGroupMapping && documentGroupMapping.length > 0) {
|
|
722
721
|
documentGroupMapping.forEach(function (documentGroup) {
|
|
722
|
+
if (documentGroup.isShow === false || documentGroup.excludeRelatedContents) {
|
|
723
|
+
return null;
|
|
724
|
+
}
|
|
723
725
|
if (documentGroup.parent) {
|
|
724
726
|
relatedLinks = [].concat(_toConsumableArray(relatedLinks), [{
|
|
725
727
|
label: documentGroup.name,
|
|
@@ -732,6 +734,9 @@ var Article = forwardRef(function (props, ref) {
|
|
|
732
734
|
content_placement.filter(function (item) {
|
|
733
735
|
return item.path !== 'news';
|
|
734
736
|
}).forEach(function (cp) {
|
|
737
|
+
if (cp.excludeRelatedContents) {
|
|
738
|
+
return null;
|
|
739
|
+
}
|
|
735
740
|
var cp_url = cpModificationRequired ? getContentPlacementUrl(cp) : cp.path;
|
|
736
741
|
var href = '/' + cp_url;
|
|
737
742
|
relatedLinks = [].concat(_toConsumableArray(relatedLinks), [{ label: cp.name, href: href }]);
|
package/dist/esm/getQuery.js
CHANGED
|
@@ -10,7 +10,7 @@ var getQuery = function getQuery(type) {
|
|
|
10
10
|
case 'related':
|
|
11
11
|
return '*[\n _type == "article"\n && defined(title)\n && defined(url)\n && !(_id in path("drafts.**"))\n && is_visible == true\n && defined(published) \n && dateTime(published) <= dateTime(now())\n && passwordLock!=true\n && taxonomyMapping[]._ref in $taxonomy\n && taxonomyMapping[].disableAds != \'true\'\n && contentCategory->.name != \'Poll\'\n && contentCategory->.name != \'Slideshows\'\n && contentCategory->.disableAds != \'true\'\n && ExcludeFromInfiniteScroll !=true\n && url.current != $url\n && !defined(body[].videos)\n ' + conditions + '\n ]| order(published desc)[' + (articleCount ? articleCount : '$index') + ']{\n ' + params + '\n title,\n published,\n summary,\n thumbnail,\n fieldAbstract,\n ...,\n passwordLock,\n password,\n "authorDetails": authorMapping[]->{ displayName, url, profileImage, biography, showSocialShare },\n body[] {\n ...,\n asset->,\n images[]{\n ...,\n asset->\n },\n content[]{\n ...,\n asset->\n },\n videos[]{\n ...,\n thumbnail{\n _type,\n asset->\n }\n },\n response[]{\n ...,\n asset->\n },\n quizzes[]{\n ...,\n answer[]{\n ...,\n asset->\n },\n question[]{\n ...,\n asset->\n }\n },\n poster {\n _type,\n asset->\n },\n slides[]{\n ...,\n slideshowImage{\n ...,\n asset->\n }\n },\n upload_doc {\n _type,\n asset->\n },\n uploadAudio {\n _type,\n asset->\n }\n },\n \'category\':contentCategory->{\n name,\n disableAds\n },\n \'content_placement\': taxonomyMapping[]-> {\n _id,\n \'ancestor\': parent->parent->identifier,\n \'parent\': parent->identifier,\n \'name\': name,\n \'path\': identifier,\n disableAds,\n showSocialShare\n },\n documentGroup-> {\n name,\n thumbnail,\n parent->{...,parent->},\n isShow,\n showSocialShare,\n \'path\': identifier.current,\n adTargetingURL\n },\n documentGroupMapping[]-> {\n _id,\n name,\n thumbnail,\n parent->{...,parent->},\n isShow,\n showSocialShare,\n \'path\': identifier.current,\n adTargetingURL\n },\n \'issue\' : *[_type == \'publication\' && !(_id in path("drafts.**")) && is_visible == true && _id == ^.issueGroup._ref][0] {\n name,\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 \'pdf\': pdf.asset->,\n isbn_issn,\n abbreviatedJournal,\n }\n }';
|
|
12
12
|
case 'article':
|
|
13
|
-
return '*[\n _type == "article"\n && !(_id in path("drafts.**"))\n && defined(title)\n && defined(url)\n && is_visible != false\n && url.current == $url\n ' + conditions + '\n ][0]{\n ' + params + '\n title,\n published,\n summary,\n thumbnail,\n fieldAbstract,\n ...,\n passwordLock,\n password,\n issueGroup-> { _id, name, identifier, parent-> },\n "authorDetails": authorMapping[]->{ displayName, url, profileImage, biography, showSocialShare },\n body[] {\n ...,\n asset->,\n images[]{\n ...,\n asset->\n },\n content[]{\n ...,\n asset->\n },\n videos[]{\n ...,\n thumbnail{\n _type,\n asset->\n }\n },\n response[]{\n ...,\n asset->\n },\n quizzes[]{\n ...,\n answer[]{\n ...,\n asset->\n },\n question[]{\n ...,\n asset->\n }\n },\n poster {\n _type,\n asset->\n },\n slides[]{\n ...,\n slideshowImage{\n ...,\n asset->\n }\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 poster {\n _type,\n asset-> \n }\n },\n articles[]{\n ...,\n thumbnail{\n ...,\n asset-> \n },\n "authorDetails": authorMapping[]->{ displayName, url, profileImage, biography, showSocialShare },\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 showSocialShare\n },\n documentGroup-> {\n _id,\n name,\n thumbnail,\n parent->{...,parent->},\n isShow,\n isSeries,\n showSocialShare,\n \'path\': identifier.current,\n adTargetingURL\n },\n documentGroupMapping[]-> {\n _id,\n name,\n thumbnail,\n parent->{...,parent->},\n isShow,\n showSocialShare,\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 year,\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 \'pdf\': pdf.asset->,\n isbn_issn,\n abbreviatedJournal,\n }\n\n }';
|
|
13
|
+
return '*[\n _type == "article"\n && !(_id in path("drafts.**"))\n && defined(title)\n && defined(url)\n && is_visible != false\n && url.current == $url\n ' + conditions + '\n ][0]{\n ' + params + '\n title,\n published,\n summary,\n thumbnail,\n fieldAbstract,\n ...,\n passwordLock,\n password,\n issueGroup-> { _id, name, identifier, parent-> },\n "authorDetails": authorMapping[]->{ displayName, url, profileImage, biography, showSocialShare },\n body[] {\n ...,\n asset->,\n images[]{\n ...,\n asset->\n },\n content[]{\n ...,\n asset->\n },\n videos[]{\n ...,\n thumbnail{\n _type,\n asset->\n }\n },\n response[]{\n ...,\n asset->\n },\n quizzes[]{\n ...,\n answer[]{\n ...,\n asset->\n },\n question[]{\n ...,\n asset->\n }\n },\n poster {\n _type,\n asset->\n },\n slides[]{\n ...,\n slideshowImage{\n ...,\n asset->\n }\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 poster {\n _type,\n asset-> \n }\n },\n articles[]{\n ...,\n thumbnail{\n ...,\n asset-> \n },\n "authorDetails": authorMapping[]->{ displayName, url, profileImage, biography, showSocialShare },\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 showSocialShare\n },\n documentGroup-> {\n _id,\n name,\n thumbnail,\n parent->{...,parent->},\n isShow,\n isSeries,\n excludeRelatedContents,\n showSocialShare,\n \'path\': identifier.current,\n adTargetingURL\n },\n documentGroupMapping[]-> {\n _id,\n name,\n thumbnail,\n parent->{...,parent->},\n isShow,\n showSocialShare,\n excludeRelatedContents,\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 year,\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 \'pdf\': pdf.asset->,\n isbn_issn,\n abbreviatedJournal,\n }\n\n }';
|
|
14
14
|
case 'publication':
|
|
15
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 thumbnail{ ..., asset-> },\n taxonomyMapping[]->,\n pdf{asset->},\n } | order(year desc, month desc)\n }';
|
|
16
16
|
case 'issue':
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import './extends-6d8e3924.js';
|
|
2
2
|
import 'react';
|
|
3
|
-
export { g as default } from './index-
|
|
3
|
+
export { g as default } from './index-4d8a8743.js';
|
|
4
4
|
import './BlockContent-1e73bd2c.js';
|
|
5
5
|
import './entities-6d9154b4.js';
|
|
6
6
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
@@ -30,9 +30,6 @@ import 'react-dom';
|
|
|
30
30
|
import './typeof-e9fc0c5d.js';
|
|
31
31
|
import './_is-array-8d21b9e3.js';
|
|
32
32
|
import './brightcove-react-player-loader.es-57a70a56.js';
|
|
33
|
-
import 'react-bootstrap/Modal';
|
|
34
|
-
import 'react-bootstrap/Button';
|
|
35
|
-
import 'react-bootstrap/Form';
|
|
36
33
|
import './GroupDeck.js';
|
|
37
34
|
import './smoothscroll-fa4e3f8c.js';
|
|
38
35
|
import './moment-bc12cb97.js';
|
|
@@ -42,6 +39,7 @@ import 'react-share';
|
|
|
42
39
|
import './_object-to-array-2300e51b.js';
|
|
43
40
|
import './toConsumableArray-f7074d7c.js';
|
|
44
41
|
import 'react-bootstrap/Pagination';
|
|
42
|
+
import 'react-bootstrap/Button';
|
|
45
43
|
import './AdSlot.js';
|
|
46
44
|
import './debounce-533d9748.js';
|
|
47
45
|
import './isSymbol-a7e9aafe.js';
|