@mjhls/mjh-framework 1.0.541 → 1.0.543-canari
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/AD728x90.js +1 -1
- package/dist/cjs/AccordionPanel.js +2 -2
- package/dist/cjs/HamMagazine.js +28 -207
- package/dist/cjs/HorizontalHero.js +3 -3
- package/dist/cjs/NavDvm.js +14 -214
- package/dist/cjs/NavMagazine.js +13 -200
- package/dist/cjs/NavNative.js +13 -190
- package/dist/cjs/NavNormal.js +10 -229
- package/dist/cjs/OncliveHero.js +2 -2
- package/dist/cjs/PdfDownload.js +2 -2
- package/dist/cjs/TemplateNormal.js +7 -7
- package/dist/cjs/Ustream.js +5 -5
- package/dist/cjs/VideoSeriesListing.js +2 -2
- package/dist/cjs/View.js +29 -13
- package/dist/cjs/getQuery.js +3 -3
- package/dist/cjs/{iconBase-68959171.js → iconBase-637d3f1e.js} +0 -1
- package/dist/cjs/{index.esm-89fabc47.js → index.esm-25423c2f.js} +1 -1
- package/dist/cjs/{index.esm-66ffa47a.js → index.esm-c0d8b44b.js} +1 -1
- package/dist/cjs/{index.esm-fbd1f7e9.js → index.esm-fcdbd2c6.js} +1 -1
- package/dist/cjs/index.js +8 -9
- package/dist/esm/AD728x90.js +1 -1
- package/dist/esm/AccordionPanel.js +2 -2
- package/dist/esm/HamMagazine.js +28 -207
- package/dist/esm/HorizontalHero.js +2 -2
- package/dist/esm/NavDvm.js +15 -215
- package/dist/esm/NavMagazine.js +13 -200
- package/dist/esm/NavNative.js +13 -190
- package/dist/esm/NavNormal.js +11 -230
- package/dist/esm/OncliveHero.js +2 -2
- package/dist/esm/PdfDownload.js +2 -2
- package/dist/esm/TemplateNormal.js +7 -7
- package/dist/esm/Ustream.js +3 -3
- package/dist/esm/VideoSeriesListing.js +2 -2
- package/dist/esm/View.js +29 -13
- package/dist/esm/getQuery.js +3 -3
- package/dist/esm/{iconBase-602d52fe.js → iconBase-6ee2f2fb.js} +1 -1
- package/dist/esm/{index.esm-b08f4b04.js → index.esm-9d6faf80.js} +1 -1
- package/dist/esm/{index.esm-9a4c8813.js → index.esm-a7ad65ba.js} +1 -1
- package/dist/esm/{index.esm-4b1d94b7.js → index.esm-b97cf389.js} +1 -1
- package/dist/esm/index.js +7 -8
- package/package.json +1 -1
- package/dist/cjs/index.esm-0e5c6a9e.js +0 -11
- package/dist/esm/index.esm-16536e81.js +0 -9
|
@@ -25,8 +25,8 @@ import './index-5f9f807a.js';
|
|
|
25
25
|
import './slicedToArray-f1e40361.js';
|
|
26
26
|
import './smoothscroll-4b699764.js';
|
|
27
27
|
import YoutubeGroup from './YoutubeGroup.js';
|
|
28
|
-
import './iconBase-
|
|
29
|
-
import { I as IoIosArrowForward } from './index.esm-
|
|
28
|
+
import './iconBase-6ee2f2fb.js';
|
|
29
|
+
import { I as IoIosArrowForward } from './index.esm-b97cf389.js';
|
|
30
30
|
|
|
31
31
|
var VideoSeriesListing = function (_React$Component) {
|
|
32
32
|
_inherits(VideoSeriesListing, _React$Component);
|
package/dist/esm/View.js
CHANGED
|
@@ -316,22 +316,38 @@ var Article = function Article(props) {
|
|
|
316
316
|
visibleFlag = _useState4[0],
|
|
317
317
|
setVisibleFlag = _useState4[1];
|
|
318
318
|
|
|
319
|
-
var
|
|
320
|
-
|
|
321
|
-
var _useState5 = useState(1),
|
|
319
|
+
var _useState5 = useState(false),
|
|
322
320
|
_useState6 = _slicedToArray(_useState5, 2),
|
|
323
|
-
|
|
324
|
-
|
|
321
|
+
adPageLoaded = _useState6[0],
|
|
322
|
+
setAdPageLoaded = _useState6[1];
|
|
323
|
+
|
|
324
|
+
var scrollCheck = function scrollCheck() {
|
|
325
|
+
setAdPageLoaded(true);
|
|
326
|
+
};
|
|
327
|
+
|
|
328
|
+
useEffect(function () {
|
|
329
|
+
window.addEventListener('scroll', scrollCheck);
|
|
330
|
+
return function () {
|
|
331
|
+
return window.removeEventListener('scroll', scrollCheck);
|
|
332
|
+
};
|
|
333
|
+
}, []);
|
|
325
334
|
|
|
326
|
-
var
|
|
335
|
+
var summary = getArticleSummary(props.article);
|
|
336
|
+
|
|
337
|
+
var _useState7 = useState(1),
|
|
327
338
|
_useState8 = _slicedToArray(_useState7, 2),
|
|
328
|
-
|
|
329
|
-
|
|
339
|
+
auth = _useState8[0],
|
|
340
|
+
setAuth = _useState8[1];
|
|
330
341
|
|
|
331
|
-
var _useState9 = useState(
|
|
342
|
+
var _useState9 = useState(''),
|
|
332
343
|
_useState10 = _slicedToArray(_useState9, 2),
|
|
333
|
-
|
|
334
|
-
|
|
344
|
+
passwordKey = _useState10[0],
|
|
345
|
+
setPasswordKey = _useState10[1];
|
|
346
|
+
|
|
347
|
+
var _useState11 = useState(body),
|
|
348
|
+
_useState12 = _slicedToArray(_useState11, 2),
|
|
349
|
+
articleBody = _useState12[0],
|
|
350
|
+
setArticleBody = _useState12[1];
|
|
335
351
|
|
|
336
352
|
var isCutomPage = function isCutomPage(article) {
|
|
337
353
|
var url = article.url.current;
|
|
@@ -774,7 +790,7 @@ var Article = function Article(props) {
|
|
|
774
790
|
React__default.createElement(
|
|
775
791
|
'div',
|
|
776
792
|
{ className: 'ad-box', style: { textAlign: 'center' } },
|
|
777
|
-
main_39 && props.article.Ads && props.article.Ads.length > 0 && props.article.Ads.map(function (ad, index) {
|
|
793
|
+
main_39 && adPageLoaded && props.article.Ads && props.article.Ads.length > 0 && props.article.Ads.map(function (ad, index) {
|
|
778
794
|
if (index === 0) {
|
|
779
795
|
return React__default.createElement(
|
|
780
796
|
'div',
|
|
@@ -829,7 +845,7 @@ var Article = function Article(props) {
|
|
|
829
845
|
renderIsiContent(props.article)
|
|
830
846
|
)
|
|
831
847
|
),
|
|
832
|
-
main_39 && props.article.Ads && props.article.Ads.length > 0 && props.article.Ads.map(function (ad, index) {
|
|
848
|
+
main_39 && adPageLoaded && props.article.Ads && props.article.Ads.length > 0 && props.article.Ads.map(function (ad, index) {
|
|
833
849
|
if (index > 0) {
|
|
834
850
|
return React__default.createElement(
|
|
835
851
|
'div',
|
package/dist/esm/getQuery.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
2
|
-
import
|
|
2
|
+
import './moment-12415288.js';
|
|
3
3
|
|
|
4
4
|
var getQuery = function getQuery(type) {
|
|
5
5
|
var conditions = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
|
|
@@ -7,10 +7,10 @@ var getQuery = function getQuery(type) {
|
|
|
7
7
|
|
|
8
8
|
//Added feature to include additional conditions and parameters for site level operations
|
|
9
9
|
//Site level conditions should start with && (logical AND), and site level params should end with , (comma) in order to execute query
|
|
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 <= \
|
|
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 \'showPublished\':select(contentCategory->name !=\'Webcasts\' => true,false),\n summary,\n thumbnail,\n ...,\n passwordLock,\n password,\n "authorDetails": authorMapping[]->{ displayName, url },\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
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 \'showPublished\':select(contentCategory->name !=\'Webcasts\' => true,false),\n summary,\n thumbnail,\n ...,\n passwordLock,\n password,\n "authorDetails": authorMapping[]->{ displayName, url },\n body[] {\n ...,\n upload_doc {\n _type,\n asset->\n },\n uploadAudio {\n _type,\n asset->\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':
|
package/dist/esm/index.js
CHANGED
|
@@ -57,8 +57,8 @@ export { default as GroupDeck } from './GroupDeck.js';
|
|
|
57
57
|
export { default as YoutubeGroup } from './YoutubeGroup.js';
|
|
58
58
|
import 'react-bootstrap';
|
|
59
59
|
export { default as QueueDeckExpanded } from './QueueDeckExpanded.js';
|
|
60
|
-
import './iconBase-
|
|
61
|
-
import './index.esm-
|
|
60
|
+
import './iconBase-6ee2f2fb.js';
|
|
61
|
+
import './index.esm-b97cf389.js';
|
|
62
62
|
export { default as VideoSeriesListing } from './VideoSeriesListing.js';
|
|
63
63
|
export { default as MasterDeck } from './MasterDeck.js';
|
|
64
64
|
import 'react-bootstrap/Button';
|
|
@@ -97,15 +97,14 @@ export { default as VideoSeriesFilter } from './VideoSeriesFilter.js';
|
|
|
97
97
|
import 'react-bootstrap/Nav';
|
|
98
98
|
import 'react-bootstrap/Navbar';
|
|
99
99
|
import 'react-bootstrap/NavDropdown';
|
|
100
|
-
import './index.esm-
|
|
101
|
-
import './NavFooter-e27bd93b.js';
|
|
102
|
-
import './SocialNavFooter-4fb16720.js';
|
|
103
|
-
import './index.esm-16536e81.js';
|
|
100
|
+
import './index.esm-9d6faf80.js';
|
|
104
101
|
import 'react-bootstrap/Form';
|
|
105
102
|
import 'react-bootstrap/FormControl';
|
|
103
|
+
export { default as Search } from './Search.js';
|
|
104
|
+
import './NavFooter-e27bd93b.js';
|
|
105
|
+
import './SocialNavFooter-4fb16720.js';
|
|
106
106
|
export { default as NavMagazine } from './NavMagazine.js';
|
|
107
107
|
export { NavNative } from './NavNative.js';
|
|
108
|
-
export { default as Search } from './Search.js';
|
|
109
108
|
export { NavNormal } from './NavNormal.js';
|
|
110
109
|
export { NavDvm } from './NavDvm.js';
|
|
111
110
|
export { HamMagazine } from './HamMagazine.js';
|
|
@@ -129,7 +128,7 @@ export { default as PdfDownload } from './PdfDownload.js';
|
|
|
129
128
|
import 'react-bootstrap/DropdownButton';
|
|
130
129
|
import 'react-bootstrap/Dropdown';
|
|
131
130
|
export { default as RelatedTopicsDropdown } from './RelatedTopicsDropdown.js';
|
|
132
|
-
import './index.esm-
|
|
131
|
+
import './index.esm-a7ad65ba.js';
|
|
133
132
|
export { default as Ustream } from './Ustream.js';
|
|
134
133
|
export { default as HighlightenVideo } from './HighlightenVideo.js';
|
|
135
134
|
export { default as PublicationLanding } from './PublicationLanding.js';
|
package/package.json
CHANGED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var iconBase = require('./iconBase-68959171.js');
|
|
4
|
-
|
|
5
|
-
// THIS FILE IS AUTO GENERATED
|
|
6
|
-
var GoSearch = function (props) {
|
|
7
|
-
return iconBase.GenIcon({"tag":"svg","attr":{"viewBox":"0 0 16 16"},"child":[{"tag":"path","attr":{"fillRule":"evenodd","d":"M15.7 13.3l-3.81-3.83A5.93 5.93 0 0 0 13 6c0-3.31-2.69-6-6-6S1 2.69 1 6s2.69 6 6 6c1.3 0 2.48-.41 3.47-1.11l3.83 3.81c.19.2.45.3.7.3.25 0 .52-.09.7-.3a.996.996 0 0 0 0-1.41v.01zM7 10.7c-2.59 0-4.7-2.11-4.7-4.7 0-2.59 2.11-4.7 4.7-4.7 2.59 0 4.7 2.11 4.7 4.7 0 2.59-2.11 4.7-4.7 4.7z"}}]})(props);
|
|
8
|
-
};
|
|
9
|
-
GoSearch.displayName = "GoSearch";
|
|
10
|
-
|
|
11
|
-
exports.GoSearch = GoSearch;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { G as GenIcon } from './iconBase-602d52fe.js';
|
|
2
|
-
|
|
3
|
-
// THIS FILE IS AUTO GENERATED
|
|
4
|
-
var GoSearch = function (props) {
|
|
5
|
-
return GenIcon({"tag":"svg","attr":{"viewBox":"0 0 16 16"},"child":[{"tag":"path","attr":{"fillRule":"evenodd","d":"M15.7 13.3l-3.81-3.83A5.93 5.93 0 0 0 13 6c0-3.31-2.69-6-6-6S1 2.69 1 6s2.69 6 6 6c1.3 0 2.48-.41 3.47-1.11l3.83 3.81c.19.2.45.3.7.3.25 0 .52-.09.7-.3a.996.996 0 0 0 0-1.41v.01zM7 10.7c-2.59 0-4.7-2.11-4.7-4.7 0-2.59 2.11-4.7 4.7-4.7 2.59 0 4.7 2.11 4.7 4.7 0 2.59-2.11 4.7-4.7 4.7z"}}]})(props);
|
|
6
|
-
};
|
|
7
|
-
GoSearch.displayName = "GoSearch";
|
|
8
|
-
|
|
9
|
-
export { GoSearch as G };
|