@mjhls/mjh-framework 1.0.665-beta.0 → 1.0.665-beta.2
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/View.js +2 -2
- package/dist/cjs/getQuery.js +1 -1
- package/dist/cjs/getRelatedArticle.js +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/esm/View.js +2 -2
- package/dist/esm/getQuery.js +1 -1
- package/dist/esm/getRelatedArticle.js +1 -1
- package/dist/esm/index.js +1 -1
- package/package.json +1 -1
- /package/dist/cjs/{getRelatedArticle-606b1d0b.js → getRelatedArticle-c944847e.js} +0 -0
- /package/dist/esm/{getRelatedArticle-80e67416.js → getRelatedArticle-2d4942b4.js} +0 -0
package/dist/cjs/View.js
CHANGED
|
@@ -59,7 +59,7 @@ var keys = require('./keys-a586b7a0.js');
|
|
|
59
59
|
require('react-bootstrap/Dropdown');
|
|
60
60
|
var getSeriesDetail = require('./getSeriesDetail.js');
|
|
61
61
|
require('./index-bd6c9f56.js');
|
|
62
|
-
var getRelatedArticle = require('./getRelatedArticle-
|
|
62
|
+
var getRelatedArticle = require('./getRelatedArticle-c944847e.js');
|
|
63
63
|
var getQuery = require('./getQuery.js');
|
|
64
64
|
var getTargeting = require('./getTargeting-9af0ef69.js');
|
|
65
65
|
var getKeywords = require('./getKeywords.js');
|
|
@@ -446,7 +446,7 @@ var Article = function Article(props) {
|
|
|
446
446
|
);
|
|
447
447
|
}),
|
|
448
448
|
content_placement && content_placement.length > 0 ? content_placement.filter(function (item) {
|
|
449
|
-
return item.
|
|
449
|
+
return item.path !== 'news';
|
|
450
450
|
}).map(function (cp, index) {
|
|
451
451
|
var cp_url = cpModificationRequired ? getTargeting.getContentPlacementUrl(cp) : cp.path;
|
|
452
452
|
var href = '/' + cp_url;
|
package/dist/cjs/getQuery.js
CHANGED
|
@@ -10,7 +10,7 @@ var getQuery = function getQuery(type) {
|
|
|
10
10
|
|
|
11
11
|
switch (type) {
|
|
12
12
|
case 'related':
|
|
13
|
-
return '*[\n _type == "article"\n && defined(title)\n && defined(url)\n && !(_id in path("drafts.**"))\n && is_visible == true\n && published <= 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 ...,\n passwordLock,\n password,\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 },\n \'content_placement\': taxonomyMapping[]-> {\n _id,\n \'ancestor\': parent->parent->identifier,\n \'parent\': parent->identifier,\n \'name\': name,\n \'path\': identifier,\n disableAds\n },\n documentGroup-> {\n name,\n thumbnail,\n parent->{...,parent->},\n \'path\': identifier.current\n },\n documentGroupMapping[]-> {\n name,\n thumbnail,\n parent->{...,parent->},\n \'path\': identifier.current\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 }\n }';
|
|
13
|
+
return '*[\n _type == "article"\n && defined(title)\n && defined(url)\n && !(_id in path("drafts.**"))\n && is_visible == true\n && published <= 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 ...,\n passwordLock,\n password,\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 },\n \'content_placement\': taxonomyMapping[]-> {\n _id,\n \'ancestor\': parent->parent->identifier,\n \'parent\': parent->identifier,\n \'name\': name,\n \'path\': identifier,\n disableAds\n },\n documentGroup-> {\n name,\n thumbnail,\n parent->{...,parent->},\n \'path\': identifier.current\n },\n documentGroupMapping[]-> {\n _id,\n name,\n thumbnail,\n parent->{...,parent->},\n \'path\': identifier.current\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 }\n }';
|
|
14
14
|
case 'article':
|
|
15
15
|
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 "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 }\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 name,\n thumbnail,\n parent->{...,parent->},\n \'path\': identifier.current\n },\n documentGroupMapping[]-> {\n _id,\n name,\n thumbnail,\n parent->{...,parent->},\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 }';
|
|
16
16
|
case 'publication':
|
|
@@ -10,7 +10,7 @@ require('./web.dom.iterable-a0e279c1.js');
|
|
|
10
10
|
require('./asyncToGenerator-533d476a.js');
|
|
11
11
|
require('./_set-species-f92c67c5.js');
|
|
12
12
|
require('./index-bd6c9f56.js');
|
|
13
|
-
var getRelatedArticle = require('./getRelatedArticle-
|
|
13
|
+
var getRelatedArticle = require('./getRelatedArticle-c944847e.js');
|
|
14
14
|
require('./getQuery.js');
|
|
15
15
|
|
|
16
16
|
|
package/dist/cjs/index.js
CHANGED
|
@@ -158,7 +158,7 @@ var KMTracker = require('./KMTracker.js');
|
|
|
158
158
|
var getSeriesDetail = require('./getSeriesDetail.js');
|
|
159
159
|
var SetCookie = require('./SetCookie.js');
|
|
160
160
|
require('./index-bd6c9f56.js');
|
|
161
|
-
var getRelatedArticle = require('./getRelatedArticle-
|
|
161
|
+
var getRelatedArticle = require('./getRelatedArticle-c944847e.js');
|
|
162
162
|
var getQuery = require('./getQuery.js');
|
|
163
163
|
var Auth = require('./Auth.js');
|
|
164
164
|
require('swr');
|
package/dist/esm/View.js
CHANGED
|
@@ -53,7 +53,7 @@ import { _ as _Object$keys } from './keys-fc2d4c34.js';
|
|
|
53
53
|
import 'react-bootstrap/Dropdown';
|
|
54
54
|
import getSeriesDetail from './getSeriesDetail.js';
|
|
55
55
|
import './index-db3bb315.js';
|
|
56
|
-
import { d as dist_3, a as dist_2, g as getRelatedArticle } from './getRelatedArticle-
|
|
56
|
+
import { d as dist_3, a as dist_2, g as getRelatedArticle } from './getRelatedArticle-2d4942b4.js';
|
|
57
57
|
import getQuery from './getQuery.js';
|
|
58
58
|
import { g as getTargeting, a as getContentPlacementUrl } from './getTargeting-2acdec91.js';
|
|
59
59
|
import getKeywords from './getKeywords.js';
|
|
@@ -440,7 +440,7 @@ var Article = function Article(props) {
|
|
|
440
440
|
);
|
|
441
441
|
}),
|
|
442
442
|
content_placement && content_placement.length > 0 ? content_placement.filter(function (item) {
|
|
443
|
-
return item.
|
|
443
|
+
return item.path !== 'news';
|
|
444
444
|
}).map(function (cp, index) {
|
|
445
445
|
var cp_url = cpModificationRequired ? getContentPlacementUrl(cp) : cp.path;
|
|
446
446
|
var href = '/' + cp_url;
|
package/dist/esm/getQuery.js
CHANGED
|
@@ -8,7 +8,7 @@ var getQuery = function getQuery(type) {
|
|
|
8
8
|
|
|
9
9
|
switch (type) {
|
|
10
10
|
case 'related':
|
|
11
|
-
return '*[\n _type == "article"\n && defined(title)\n && defined(url)\n && !(_id in path("drafts.**"))\n && is_visible == true\n && published <= 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 ...,\n passwordLock,\n password,\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 },\n \'content_placement\': taxonomyMapping[]-> {\n _id,\n \'ancestor\': parent->parent->identifier,\n \'parent\': parent->identifier,\n \'name\': name,\n \'path\': identifier,\n disableAds\n },\n documentGroup-> {\n name,\n thumbnail,\n parent->{...,parent->},\n \'path\': identifier.current\n },\n documentGroupMapping[]-> {\n name,\n thumbnail,\n parent->{...,parent->},\n \'path\': identifier.current\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 }\n }';
|
|
11
|
+
return '*[\n _type == "article"\n && defined(title)\n && defined(url)\n && !(_id in path("drafts.**"))\n && is_visible == true\n && published <= 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 ...,\n passwordLock,\n password,\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 },\n \'content_placement\': taxonomyMapping[]-> {\n _id,\n \'ancestor\': parent->parent->identifier,\n \'parent\': parent->identifier,\n \'name\': name,\n \'path\': identifier,\n disableAds\n },\n documentGroup-> {\n name,\n thumbnail,\n parent->{...,parent->},\n \'path\': identifier.current\n },\n documentGroupMapping[]-> {\n _id,\n name,\n thumbnail,\n parent->{...,parent->},\n \'path\': identifier.current\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 }\n }';
|
|
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 "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 }\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 name,\n thumbnail,\n parent->{...,parent->},\n \'path\': identifier.current\n },\n documentGroupMapping[]-> {\n _id,\n name,\n thumbnail,\n parent->{...,parent->},\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':
|
|
@@ -8,5 +8,5 @@ import './web.dom.iterable-8956f9a5.js';
|
|
|
8
8
|
import './asyncToGenerator-7c654f36.js';
|
|
9
9
|
import './_set-species-cede29f8.js';
|
|
10
10
|
import './index-db3bb315.js';
|
|
11
|
-
export { g as default } from './getRelatedArticle-
|
|
11
|
+
export { g as default } from './getRelatedArticle-2d4942b4.js';
|
|
12
12
|
import './getQuery.js';
|
package/dist/esm/index.js
CHANGED
|
@@ -154,7 +154,7 @@ export { default as KMTracker } from './KMTracker.js';
|
|
|
154
154
|
export { default as getSeriesDetail } from './getSeriesDetail.js';
|
|
155
155
|
export { default as SetCookie } from './SetCookie.js';
|
|
156
156
|
import './index-db3bb315.js';
|
|
157
|
-
export { g as getRelatedArticle } from './getRelatedArticle-
|
|
157
|
+
export { g as getRelatedArticle } from './getRelatedArticle-2d4942b4.js';
|
|
158
158
|
export { default as getQuery } from './getQuery.js';
|
|
159
159
|
export { default as Auth } from './Auth.js';
|
|
160
160
|
import 'swr';
|
package/package.json
CHANGED
|
File without changes
|
|
File without changes
|