@mjhls/mjh-framework 1.0.592 → 1.0.594
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/ArticleQueue.js +11 -10
- package/dist/cjs/DeckContent.js +1 -1
- package/dist/cjs/DeckQueue.js +1 -1
- package/dist/cjs/ExternalResources.js +4 -3
- package/dist/cjs/GridContent.js +2 -2
- package/dist/cjs/{InscreenSensor-3aec8492.js → InscreenSensor-e7f3579f.js} +1 -1
- package/dist/cjs/MasterDeck.js +1 -1
- package/dist/cjs/PartnerDetailListing.js +2 -2
- package/dist/cjs/VideoSeriesListing.js +1 -1
- package/dist/cjs/View.js +16 -73
- package/dist/cjs/getQuery.js +1 -1
- package/dist/cjs/getSerializers.js +31 -8305
- package/dist/cjs/getSeriesDetail.js +0 -1
- package/dist/cjs/index-e7f86168.js +8562 -0
- package/dist/cjs/index.js +6 -6
- package/dist/cjs/{inherits-14962339.js → inherits-93684212.js} +4 -4
- package/dist/esm/ArticleQueue.js +2 -1
- package/dist/esm/ExternalResources.js +2 -1
- package/dist/esm/GridContent.js +1 -1
- package/dist/esm/PartnerDetailListing.js +1 -1
- package/dist/esm/View.js +3 -60
- package/dist/esm/getQuery.js +1 -1
- package/dist/esm/getSerializers.js +27 -8301
- package/dist/esm/getSeriesDetail.js +0 -1
- package/dist/esm/index-80cb5ee6.js +8555 -0
- package/dist/esm/index.js +2 -2
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -12,7 +12,7 @@ require('./toConsumableArray-ca04303b.js');
|
|
|
12
12
|
require('./_object-pie-68c5bcbc.js');
|
|
13
13
|
require('./extends-60837c34.js');
|
|
14
14
|
require('./_object-sap-5e74ba08.js');
|
|
15
|
-
require('./inherits-
|
|
15
|
+
require('./inherits-93684212.js');
|
|
16
16
|
require('./web.dom.iterable-43c3e277.js');
|
|
17
17
|
require('./typeof-1869832c.js');
|
|
18
18
|
require('./_is-array-754e012d.js');
|
|
@@ -75,7 +75,7 @@ require('./index-5be2866f.js');
|
|
|
75
75
|
require('./js.cookie-a511c430.js');
|
|
76
76
|
var EventsDeck = require('./EventsDeck.js');
|
|
77
77
|
var CMEDeck = require('./CMEDeck.js');
|
|
78
|
-
var getSerializers = require('./
|
|
78
|
+
var getSerializers = require('./index-e7f86168.js');
|
|
79
79
|
require('./util-f2c1b65b.js');
|
|
80
80
|
require('./brightcove-react-player-loader.es-156bd4d6.js');
|
|
81
81
|
require('react-bootstrap/Pagination');
|
|
@@ -143,7 +143,7 @@ var IssueLanding = require('./IssueLanding.js');
|
|
|
143
143
|
require('react-bootstrap/Modal');
|
|
144
144
|
var PopUpModal = require('./PopUpModal.js');
|
|
145
145
|
var ArticleQueue = require('./ArticleQueue.js');
|
|
146
|
-
require('./InscreenSensor-
|
|
146
|
+
require('./InscreenSensor-e7f3579f.js');
|
|
147
147
|
var getKeywords = require('./getKeywords.js');
|
|
148
148
|
var RelatedContent = require('./RelatedContent.js');
|
|
149
149
|
var ForbesHero = require('./ForbesHero.js');
|
|
@@ -164,8 +164,8 @@ var Auth = require('./Auth.js');
|
|
|
164
164
|
require('swr');
|
|
165
165
|
require('passport-local');
|
|
166
166
|
require('mysql');
|
|
167
|
-
var View = require('./View.js');
|
|
168
167
|
var getTargeting = require('./getTargeting-b15993cb.js');
|
|
168
|
+
var View = require('./View.js');
|
|
169
169
|
var urlFor = require('./urlFor.js');
|
|
170
170
|
require('react-twitter-embed');
|
|
171
171
|
var PartnerDetailListing = require('./PartnerDetailListing.js');
|
|
@@ -192,7 +192,7 @@ exports.IssueDeck = IssueDeck;
|
|
|
192
192
|
exports.IssueContentDeck = IssueContentDeck;
|
|
193
193
|
exports.EventsDeck = EventsDeck;
|
|
194
194
|
exports.CMEDeck = CMEDeck;
|
|
195
|
-
exports.getSerializers = getSerializers;
|
|
195
|
+
exports.getSerializers = getSerializers.getSerializers;
|
|
196
196
|
exports.ExternalResources = ExternalResources;
|
|
197
197
|
exports.Column1 = Column1.Column1;
|
|
198
198
|
exports.SideFooter = SideFooter;
|
|
@@ -251,7 +251,7 @@ exports.SetCookie = SetCookie;
|
|
|
251
251
|
exports.getQuery = getQuery;
|
|
252
252
|
exports.getRelatedArticle = getRelatedArticle;
|
|
253
253
|
exports.Auth = Auth.default;
|
|
254
|
-
exports.View = View;
|
|
255
254
|
exports.getTargeting = getTargeting.getTargeting;
|
|
255
|
+
exports.View = View;
|
|
256
256
|
exports.urlFor = urlFor;
|
|
257
257
|
exports.PartnerDetailListing = PartnerDetailListing;
|
|
@@ -4,7 +4,7 @@ var _commonjsHelpers = require('./_commonjsHelpers-06173234.js');
|
|
|
4
4
|
var _toObject = require('./_to-object-329a650b.js');
|
|
5
5
|
var core_getIteratorMethod = require('./core.get-iterator-method-41e87ec1.js');
|
|
6
6
|
var _objectSap = require('./_object-sap-5e74ba08.js');
|
|
7
|
-
var _typeof
|
|
7
|
+
var _typeof = require('./typeof-1869832c.js');
|
|
8
8
|
|
|
9
9
|
// 19.1.2.9 Object.getPrototypeOf(O)
|
|
10
10
|
|
|
@@ -88,7 +88,7 @@ exports.__esModule = true;
|
|
|
88
88
|
|
|
89
89
|
|
|
90
90
|
|
|
91
|
-
var _typeof3 = _interopRequireDefault(_typeof
|
|
91
|
+
var _typeof3 = _interopRequireDefault(_typeof._typeof_1);
|
|
92
92
|
|
|
93
93
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
94
94
|
|
|
@@ -115,7 +115,7 @@ var _setProto = {
|
|
|
115
115
|
set: Object.setPrototypeOf || ('__proto__' in {} ? // eslint-disable-line
|
|
116
116
|
function (test, buggy, set) {
|
|
117
117
|
try {
|
|
118
|
-
set = _toObject._ctx(Function.call, _typeof
|
|
118
|
+
set = _toObject._ctx(Function.call, _typeof._objectGopd.f(Object.prototype, '__proto__').set, 2);
|
|
119
119
|
set(test, []);
|
|
120
120
|
buggy = !(test instanceof Array);
|
|
121
121
|
} catch (e) { buggy = true; }
|
|
@@ -169,7 +169,7 @@ var _create2 = _interopRequireDefault(create$1);
|
|
|
169
169
|
|
|
170
170
|
|
|
171
171
|
|
|
172
|
-
var _typeof3 = _interopRequireDefault(_typeof
|
|
172
|
+
var _typeof3 = _interopRequireDefault(_typeof._typeof_1);
|
|
173
173
|
|
|
174
174
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
175
175
|
|
package/dist/esm/ArticleQueue.js
CHANGED
|
@@ -33,13 +33,14 @@ import './asyncToGenerator-0379e924.js';
|
|
|
33
33
|
import './_set-species-6f64f1c1.js';
|
|
34
34
|
import './beam-a25bd8fd.js';
|
|
35
35
|
import DFPAdSlot from './AdSlot.js';
|
|
36
|
+
import './lodash-17fdfebb.js';
|
|
36
37
|
import { i as isFunction_1, a as isArray_1, _ as _arrayMap } from './_arrayMap-64cbe0e4.js';
|
|
37
38
|
import { B as BlockContent } from './BlockContent-a614acdf.js';
|
|
38
39
|
import './smoothscroll-4b699764.js';
|
|
39
40
|
import './GroupDeck.js';
|
|
40
41
|
import 'react-bootstrap';
|
|
41
42
|
import 'react-bootstrap/Button';
|
|
42
|
-
import getSerializers from './
|
|
43
|
+
import { g as getSerializers } from './index-80cb5ee6.js';
|
|
43
44
|
import './util-7700fc59.js';
|
|
44
45
|
import './brightcove-react-player-loader.es-83f53e4e.js';
|
|
45
46
|
import 'react-bootstrap/Pagination';
|
|
@@ -29,13 +29,14 @@ import './asyncToGenerator-0379e924.js';
|
|
|
29
29
|
import './_set-species-6f64f1c1.js';
|
|
30
30
|
import './beam-a25bd8fd.js';
|
|
31
31
|
import './AdSlot.js';
|
|
32
|
+
import './lodash-17fdfebb.js';
|
|
32
33
|
import { B as BlockContent } from './BlockContent-a614acdf.js';
|
|
33
34
|
import './smoothscroll-4b699764.js';
|
|
34
35
|
import './GroupDeck.js';
|
|
35
36
|
import 'react-bootstrap';
|
|
36
37
|
import Button from 'react-bootstrap/Button';
|
|
37
38
|
import { m as momentTimezone } from './index-d2f90501.js';
|
|
38
|
-
import getSerializers from './
|
|
39
|
+
import { g as getSerializers } from './index-80cb5ee6.js';
|
|
39
40
|
import './util-7700fc59.js';
|
|
40
41
|
import './brightcove-react-player-loader.es-83f53e4e.js';
|
|
41
42
|
import 'react-bootstrap/Pagination';
|
package/dist/esm/GridContent.js
CHANGED
|
@@ -383,7 +383,7 @@ var GridContent = function (_React$Component) {
|
|
|
383
383
|
// Checking lgInfeedAd flag in desktop view ( window >= 1400px ).
|
|
384
384
|
if (lgInfeedAd && typeof window !== 'undefined' && window.innerWidth >= 1400) {
|
|
385
385
|
brandInsight.interval = 8;
|
|
386
|
-
} else {
|
|
386
|
+
} else if (typeof window !== 'undefined' && window.innerWidth < 1400) {
|
|
387
387
|
brandInsight.interval = 5;
|
|
388
388
|
posts = data;
|
|
389
389
|
}
|
|
@@ -43,7 +43,7 @@ import './GroupDeck.js';
|
|
|
43
43
|
import 'react-bootstrap';
|
|
44
44
|
import QueueDeckExpanded from './QueueDeckExpanded.js';
|
|
45
45
|
import 'react-bootstrap/Button';
|
|
46
|
-
import getSerializers from './
|
|
46
|
+
import { g as getSerializers } from './index-80cb5ee6.js';
|
|
47
47
|
import './util-7700fc59.js';
|
|
48
48
|
import './brightcove-react-player-loader.es-83f53e4e.js';
|
|
49
49
|
import 'react-bootstrap/Pagination';
|
package/dist/esm/View.js
CHANGED
|
@@ -33,12 +33,13 @@ import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-037
|
|
|
33
33
|
import './_set-species-6f64f1c1.js';
|
|
34
34
|
import './beam-a25bd8fd.js';
|
|
35
35
|
import DFPAdSlot from './AdSlot.js';
|
|
36
|
+
import './lodash-17fdfebb.js';
|
|
36
37
|
import { B as BlockContent } from './BlockContent-a614acdf.js';
|
|
37
38
|
import './smoothscroll-4b699764.js';
|
|
38
39
|
import './GroupDeck.js';
|
|
39
|
-
import
|
|
40
|
+
import 'react-bootstrap';
|
|
40
41
|
import Button from 'react-bootstrap/Button';
|
|
41
|
-
import getSerializers from './
|
|
42
|
+
import { r as renderAuthor, g as getSerializers } from './index-80cb5ee6.js';
|
|
42
43
|
import './util-7700fc59.js';
|
|
43
44
|
import './brightcove-react-player-loader.es-83f53e4e.js';
|
|
44
45
|
import 'react-bootstrap/Pagination';
|
|
@@ -58,64 +59,6 @@ import getRelatedArticle from './getRelatedArticle.js';
|
|
|
58
59
|
import { g as getTargeting, a as getContentPlacementUrl } from './getTargeting-1a0bd08d.js';
|
|
59
60
|
import urlFor from './urlFor.js';
|
|
60
61
|
|
|
61
|
-
var renderAuthor = function renderAuthor(authorName, authorURL, index, length) {
|
|
62
|
-
var defaultUrl = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 'authors';
|
|
63
|
-
var biography = arguments[5];
|
|
64
|
-
var profileImage = arguments[6];
|
|
65
|
-
|
|
66
|
-
if (authorName && authorURL) {
|
|
67
|
-
return React__default.createElement(
|
|
68
|
-
'span',
|
|
69
|
-
null,
|
|
70
|
-
React__default.createElement(
|
|
71
|
-
'a',
|
|
72
|
-
{ className: 'author-details-link-' + index, rel: 'author', href: '/' + defaultUrl + '/' + authorURL.current, key: index },
|
|
73
|
-
authorName
|
|
74
|
-
),
|
|
75
|
-
React__default.createElement(
|
|
76
|
-
Card,
|
|
77
|
-
{ className: 'author-details-card-' + index },
|
|
78
|
-
React__default.createElement(
|
|
79
|
-
Row,
|
|
80
|
-
null,
|
|
81
|
-
profileImage && React__default.createElement(
|
|
82
|
-
Col,
|
|
83
|
-
{ sm: 12, md: 4, className: 'author-details-img-container' },
|
|
84
|
-
React__default.createElement(Card.Img, { className: 'author-details-img', src: profileImage, alt: authorName })
|
|
85
|
-
),
|
|
86
|
-
React__default.createElement(
|
|
87
|
-
Col,
|
|
88
|
-
{ className: 'author-details-col', sm: 12, md: profileImage ? 8 : 12 },
|
|
89
|
-
React__default.createElement(
|
|
90
|
-
'h5',
|
|
91
|
-
null,
|
|
92
|
-
authorName
|
|
93
|
-
),
|
|
94
|
-
React__default.createElement(
|
|
95
|
-
'p',
|
|
96
|
-
null,
|
|
97
|
-
biography
|
|
98
|
-
)
|
|
99
|
-
)
|
|
100
|
-
)
|
|
101
|
-
),
|
|
102
|
-
React__default.createElement(
|
|
103
|
-
'style',
|
|
104
|
-
{ jsx: 'true' },
|
|
105
|
-
'\n .author-details-card-' + index + ' {\n display: none;\n position: absolute;\n width: 90%;\n max-width: 450px;\n z-index: 9999;\n }\n .author-details-card-' + index + ' h5 {\n font-weight: 500;\n }\n .author-details-link-' + index + ':hover + .author-details-card-' + index + ', .author-details-card-' + index + ':hover {\n display: block;\n box-shadow: 0px 0px 5px #aaa;\n padding: 15px;\n border-radius: 5px;\n }\n '
|
|
106
|
-
),
|
|
107
|
-
length !== index + 1 && ' , '
|
|
108
|
-
);
|
|
109
|
-
} else if (authorName) {
|
|
110
|
-
return React__default.createElement(
|
|
111
|
-
'span',
|
|
112
|
-
{ key: index },
|
|
113
|
-
authorName,
|
|
114
|
-
length !== index + 1 && ' , '
|
|
115
|
-
);
|
|
116
|
-
}
|
|
117
|
-
};
|
|
118
|
-
|
|
119
62
|
var getArticleSummary = function getArticleSummary(article) {
|
|
120
63
|
if (article.summary && article.summary.length > 0) {
|
|
121
64
|
return article.summary;
|
package/dist/esm/getQuery.js
CHANGED
|
@@ -12,7 +12,7 @@ var getQuery = function getQuery(type) {
|
|
|
12
12
|
case 'related':
|
|
13
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)[$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 \'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 \'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
|
-
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 },\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 \'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 }';
|
|
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 \'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':
|
|
17
17
|
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 pdf{asset->}\n } | order(year desc, month desc)\n }';
|
|
18
18
|
case 'issue':
|