@mjhls/mjh-framework 1.0.1065 → 1.0.1066

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.
@@ -9,7 +9,7 @@ var getQuery = function getQuery(type) {
9
9
  switch (type) {
10
10
  // quiz video series and slideshow
11
11
  case 'related':
12
- 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 && isHealthcareProfessional != 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 && !defined(body[].quizzes)\n && !defined(body[].slides)\n && !defined(body[].articles)\n ' + conditions + '\n ]| order(published desc)[' + (articleCount ? articleCount : '$index') + ']{\n ' + params + '\n title,\n published,\n summary,\n thumbnail,\n abstract,\n ...,\n passwordLock,\n password,\n "authorDetails": authorMapping[]->{ displayName, firstName, lastName, 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 pixelTrackingCode->\n },\n documentGroup-> {\n name,\n thumbnail,\n hideThumbnail,\n parent->{...,parent->},\n isShow,\n showSocialShare,\n \'path\': identifier.current,\n adTargetingURL,\n hideSeriesSlider,\n pixelTrackingCode->\n },\n documentGroupMapping[]-> {\n _id,\n name,\n thumbnail,\n parent->{...,parent->},\n isShow,\n showSocialShare,\n \'path\': identifier.current,\n adTargetingURL,\n hideSeriesSlider,\n pixelTrackingCode->\n },\n \'issue\' : *[_type == \'publication\' && !(_id in path("drafts.**")) && is_visible == true && _id == ^.issueGroup._ref][0] {\n name,\n \'path\': identifier.current,\n show_download_ris_button,\n \'publication\' : *[_type == \'publication\' && !(_id in path("drafts.**")) && is_visible == true && _id == ^.parent._ref][0] {\n name,\n \'path\': identifier.current,\n show_download_ris_button,\n },\n \'url\' : pdf.asset-> url,\n \'pdf\': pdf.asset->,\n isbn_issn,\n abbreviatedJournal,\n }\n }';
12
+ 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 && isHealthcareProfessional != 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 && !defined(body[].quizzes)\n && !defined(body[].slides)\n && !defined(body[].articles)\n ' + conditions + '\n ]| order(published desc)[' + (articleCount ? articleCount : '$index') + ']{\n ' + params + '\n title,\n published,\n summary,\n thumbnail,\n abstract,\n ...,\n passwordLock,\n password,\n "authorDetails": authorMapping[]->{ displayName, firstName, lastName, 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 ...,\n \'ancestor\': parent->parent->identifier,\n \'parent\': parent->identifier,\n \'name\': name,\n \'path\': identifier,\n showSocialShare,\n pixelTrackingCode->\n },\n documentGroup-> {\n name,\n thumbnail,\n hideThumbnail,\n parent->{...,parent->},\n isShow,\n showSocialShare,\n \'path\': identifier.current,\n adTargetingURL,\n hideSeriesSlider,\n pixelTrackingCode->\n },\n documentGroupMapping[]-> {\n _id,\n name,\n thumbnail,\n parent->{...,parent->},\n isShow,\n showSocialShare,\n \'path\': identifier.current,\n adTargetingURL,\n hideSeriesSlider,\n pixelTrackingCode->\n },\n \'issue\' : *[_type == \'publication\' && !(_id in path("drafts.**")) && is_visible == true && _id == ^.issueGroup._ref][0] {\n name,\n \'path\': identifier.current,\n show_download_ris_button,\n \'publication\' : *[_type == \'publication\' && !(_id in path("drafts.**")) && is_visible == true && _id == ^.parent._ref][0] {\n name,\n \'path\': identifier.current,\n show_download_ris_button,\n },\n \'url\' : pdf.asset-> url,\n \'pdf\': pdf.asset->,\n isbn_issn,\n abbreviatedJournal,\n }\n }';
13
13
  case 'article':
14
14
  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 abstract,\n ...,\n passwordLock,\n password,\n disableNativeAds,\n issueGroup-> { _id, name, identifier, showIssueNameOnly, showPageNumber, risMapping, parent-> },\n "authorDetails": authorMapping[]->{ displayName, firstName, lastName, 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, firstName, lastName, 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 pixelTrackingCode->\n },\n documentGroup-> {\n _id,\n name,\n thumbnail,\n hideThumbnail,\n parent->{...,parent->},\n isShow,\n isSeries,\n disableEpisodeNumber,\n excludeRelatedContents,\n showSocialShare,\n \'path\': identifier.current,\n adTargetingURL,\n hideSeriesSlider,\n pixelTrackingCode->\n },\n documentGroupMapping[]-> {\n _id,\n name,\n thumbnail,\n isSeries,\n disableEpisodeNumber,\n parent->{...,parent->},\n isShow,\n showSocialShare,\n excludeRelatedContents,\n \'path\': identifier.current,\n hideSeriesSlider,\n pixelTrackingCode->\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 show_download_ris_button,\n \'publication\' : *[_type == \'publication\' && !(_id in path("drafts.**")) && is_visible == true && _id == ^.parent._ref][0] {\n name,\n \'path\': identifier.current,\n show_download_ris_button,\n },\n \'url\' : pdf.asset-> url,\n \'pdf\': pdf.asset->,\n isbn_issn,\n abbreviatedJournal,\n }\n\n }';
15
15
  case 'publication':
@@ -33,18 +33,9 @@ function _objectWithoutPropertiesLoose(source, excluded) {
33
33
  return target;
34
34
  }
35
35
 
36
- function _setPrototypeOf(o, p) {
37
- _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
38
- o.__proto__ = p;
39
- return o;
40
- };
41
-
42
- return _setPrototypeOf(o, p);
43
- }
44
-
45
36
  var classnames = createCommonjsModule(function (module) {
46
37
  /*!
47
- Copyright (c) 2018 Jed Watson.
38
+ Copyright (c) 2017 Jed Watson.
48
39
  Licensed under the MIT License (MIT), see
49
40
  http://jedwatson.github.io/classnames
50
41
  */
@@ -54,7 +45,7 @@ var classnames = createCommonjsModule(function (module) {
54
45
 
55
46
  var hasOwn = {}.hasOwnProperty;
56
47
 
57
- function classNames() {
48
+ function classNames () {
58
49
  var classes = [];
59
50
 
60
51
  for (var i = 0; i < arguments.length; i++) {
@@ -65,22 +56,16 @@ var classnames = createCommonjsModule(function (module) {
65
56
 
66
57
  if (argType === 'string' || argType === 'number') {
67
58
  classes.push(arg);
68
- } else if (Array.isArray(arg)) {
69
- if (arg.length) {
70
- var inner = classNames.apply(null, arg);
71
- if (inner) {
72
- classes.push(inner);
73
- }
59
+ } else if (Array.isArray(arg) && arg.length) {
60
+ var inner = classNames.apply(null, arg);
61
+ if (inner) {
62
+ classes.push(inner);
74
63
  }
75
64
  } else if (argType === 'object') {
76
- if (arg.toString === Object.prototype.toString) {
77
- for (var key in arg) {
78
- if (hasOwn.call(arg, key) && arg[key]) {
79
- classes.push(key);
80
- }
65
+ for (var key in arg) {
66
+ if (hasOwn.call(arg, key) && arg[key]) {
67
+ classes.push(key);
81
68
  }
82
- } else {
83
- classes.push(arg.toString());
84
69
  }
85
70
  }
86
71
  }
@@ -97,4 +82,4 @@ var classnames = createCommonjsModule(function (module) {
97
82
  }());
98
83
  });
99
84
 
100
- export { _objectWithoutPropertiesLoose as _, _setPrototypeOf as a, _extends as b, classnames as c };
85
+ export { _objectWithoutPropertiesLoose as _, _extends as a, classnames as c };
package/dist/esm/index.js CHANGED
@@ -153,8 +153,7 @@ import './_object-to-array-b61d5965.js';
153
153
  import 'react-bootstrap/Spinner';
154
154
  import 'react-bootstrap/Form';
155
155
  import './js.cookie-6874175c.js';
156
- import './typeof-2f07d0e8.js';
157
- import './index-98ca9cec.js';
156
+ import './index-0ce54f8a.js';
158
157
  import './ConferenceBanner-8792ebd2.js';
159
158
  import 'next/head';
160
159
  import '@mjhls/mjh-framework/dist/cjs/urlFor';
@@ -190,8 +189,7 @@ import './SeriesSlider-a6b1d617.js';
190
189
  import './style-inject.es-1f59c1d0.js';
191
190
  import 'disqus-react';
192
191
  import 'react-twitter-embed';
193
- import './ImageSlider-497e9c88.js';
194
- import './defineProperty-23a8f8cd.js';
192
+ import './ImageSlider-da225417.js';
195
193
  import './VideoSeriesCard.js';
196
194
 
197
195
  //Feature query to be used
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mjhls/mjh-framework",
3
- "version": "1.0.1065",
3
+ "version": "1.0.1066",
4
4
  "description": "Foundation Framework",
5
5
  "author": "mjh-framework",
6
6
  "license": "MIT",
@@ -1,73 +0,0 @@
1
- 'use strict';
2
-
3
- var _commonjsHelpers = require('./_commonjsHelpers-06173234.js');
4
-
5
- var asyncToGenerator = _commonjsHelpers.createCommonjsModule(function (module) {
6
- function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
7
- try {
8
- var info = gen[key](arg);
9
- var value = info.value;
10
- } catch (error) {
11
- reject(error);
12
- return;
13
- }
14
-
15
- if (info.done) {
16
- resolve(value);
17
- } else {
18
- Promise.resolve(value).then(_next, _throw);
19
- }
20
- }
21
-
22
- function _asyncToGenerator(fn) {
23
- return function () {
24
- var self = this,
25
- args = arguments;
26
- return new Promise(function (resolve, reject) {
27
- var gen = fn.apply(self, args);
28
-
29
- function _next(value) {
30
- asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
31
- }
32
-
33
- function _throw(err) {
34
- asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
35
- }
36
-
37
- _next(undefined);
38
- });
39
- };
40
- }
41
-
42
- module.exports = _asyncToGenerator;
43
- module.exports["default"] = module.exports, module.exports.__esModule = true;
44
- });
45
-
46
- var _asyncToGenerator = _commonjsHelpers.unwrapExports(asyncToGenerator);
47
-
48
- var defineProperty = _commonjsHelpers.createCommonjsModule(function (module) {
49
- function _defineProperty(obj, key, value) {
50
- if (key in obj) {
51
- Object.defineProperty(obj, key, {
52
- value: value,
53
- enumerable: true,
54
- configurable: true,
55
- writable: true
56
- });
57
- } else {
58
- obj[key] = value;
59
- }
60
-
61
- return obj;
62
- }
63
-
64
- module.exports = _defineProperty;
65
- module.exports["default"] = module.exports, module.exports.__esModule = true;
66
- });
67
-
68
- var _defineProperty = _commonjsHelpers.unwrapExports(defineProperty);
69
-
70
- exports._asyncToGenerator = _asyncToGenerator;
71
- exports._defineProperty = _defineProperty;
72
- exports.asyncToGenerator = asyncToGenerator;
73
- exports.defineProperty = defineProperty;
@@ -1,33 +0,0 @@
1
- 'use strict';
2
-
3
- var _commonjsHelpers = require('./_commonjsHelpers-06173234.js');
4
-
5
- var _typeof_1 = _commonjsHelpers.createCommonjsModule(function (module) {
6
- function _typeof(obj) {
7
- "@babel/helpers - typeof";
8
-
9
- if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
10
- module.exports = _typeof = function _typeof(obj) {
11
- return typeof obj;
12
- };
13
-
14
- module.exports["default"] = module.exports, module.exports.__esModule = true;
15
- } else {
16
- module.exports = _typeof = function _typeof(obj) {
17
- return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
18
- };
19
-
20
- module.exports["default"] = module.exports, module.exports.__esModule = true;
21
- }
22
-
23
- return _typeof(obj);
24
- }
25
-
26
- module.exports = _typeof;
27
- module.exports["default"] = module.exports, module.exports.__esModule = true;
28
- });
29
-
30
- var _typeof = _commonjsHelpers.unwrapExports(_typeof_1);
31
-
32
- exports._typeof = _typeof;
33
- exports._typeof_1 = _typeof_1;
@@ -1,68 +0,0 @@
1
- import { c as createCommonjsModule, u as unwrapExports } from './_commonjsHelpers-0c4b6f40.js';
2
-
3
- var asyncToGenerator = createCommonjsModule(function (module) {
4
- function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
5
- try {
6
- var info = gen[key](arg);
7
- var value = info.value;
8
- } catch (error) {
9
- reject(error);
10
- return;
11
- }
12
-
13
- if (info.done) {
14
- resolve(value);
15
- } else {
16
- Promise.resolve(value).then(_next, _throw);
17
- }
18
- }
19
-
20
- function _asyncToGenerator(fn) {
21
- return function () {
22
- var self = this,
23
- args = arguments;
24
- return new Promise(function (resolve, reject) {
25
- var gen = fn.apply(self, args);
26
-
27
- function _next(value) {
28
- asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
29
- }
30
-
31
- function _throw(err) {
32
- asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
33
- }
34
-
35
- _next(undefined);
36
- });
37
- };
38
- }
39
-
40
- module.exports = _asyncToGenerator;
41
- module.exports["default"] = module.exports, module.exports.__esModule = true;
42
- });
43
-
44
- var _asyncToGenerator = unwrapExports(asyncToGenerator);
45
-
46
- var defineProperty = createCommonjsModule(function (module) {
47
- function _defineProperty(obj, key, value) {
48
- if (key in obj) {
49
- Object.defineProperty(obj, key, {
50
- value: value,
51
- enumerable: true,
52
- configurable: true,
53
- writable: true
54
- });
55
- } else {
56
- obj[key] = value;
57
- }
58
-
59
- return obj;
60
- }
61
-
62
- module.exports = _defineProperty;
63
- module.exports["default"] = module.exports, module.exports.__esModule = true;
64
- });
65
-
66
- var _defineProperty = unwrapExports(defineProperty);
67
-
68
- export { _asyncToGenerator as _, _defineProperty as a, asyncToGenerator as b, defineProperty as d };
@@ -1,30 +0,0 @@
1
- import { c as createCommonjsModule, u as unwrapExports } from './_commonjsHelpers-0c4b6f40.js';
2
-
3
- var _typeof_1 = createCommonjsModule(function (module) {
4
- function _typeof(obj) {
5
- "@babel/helpers - typeof";
6
-
7
- if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
8
- module.exports = _typeof = function _typeof(obj) {
9
- return typeof obj;
10
- };
11
-
12
- module.exports["default"] = module.exports, module.exports.__esModule = true;
13
- } else {
14
- module.exports = _typeof = function _typeof(obj) {
15
- return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
16
- };
17
-
18
- module.exports["default"] = module.exports, module.exports.__esModule = true;
19
- }
20
-
21
- return _typeof(obj);
22
- }
23
-
24
- module.exports = _typeof;
25
- module.exports["default"] = module.exports, module.exports.__esModule = true;
26
- });
27
-
28
- var _typeof = unwrapExports(_typeof_1);
29
-
30
- export { _typeof as _, _typeof_1 as a };