@mjhls/mjh-framework 1.0.1065-webcastPublicationDate-v3 → 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.
package/dist/esm/View.js CHANGED
@@ -1772,8 +1772,6 @@ var Article = React__default.memo(forwardRef(function (props, ref) {
1772
1772
  !isVideoSeries && !isFormAssembly && showPublished && React__default.createElement(
1773
1773
  'div',
1774
1774
  null,
1775
- 'Published on:',
1776
- '\xA0',
1777
1775
  React__default.createElement(
1778
1776
  'time',
1779
1777
  {
@@ -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':
@@ -29,6 +29,7 @@ var serialize_1 = serialize;
29
29
 
30
30
  var decode = decodeURIComponent;
31
31
  var encode = encodeURIComponent;
32
+ var pairSplitRegExp = /; */;
32
33
 
33
34
  /**
34
35
  * RegExp to match field-content in RFC 7230 sec 3.2
@@ -59,29 +60,28 @@ function parse$1(str, options) {
59
60
 
60
61
  var obj = {};
61
62
  var opt = options || {};
62
- var pairs = str.split(';');
63
+ var pairs = str.split(pairSplitRegExp);
63
64
  var dec = opt.decode || decode;
64
65
 
65
66
  for (var i = 0; i < pairs.length; i++) {
66
67
  var pair = pairs[i];
67
- var index = pair.indexOf('=');
68
+ var eq_idx = pair.indexOf('=');
68
69
 
69
70
  // skip things that don't look like key=value
70
- if (index < 0) {
71
+ if (eq_idx < 0) {
71
72
  continue;
72
73
  }
73
74
 
74
- var key = pair.substring(0, index).trim();
75
+ var key = pair.substr(0, eq_idx).trim();
76
+ var val = pair.substr(++eq_idx, pair.length).trim();
77
+
78
+ // quoted values
79
+ if ('"' == val[0]) {
80
+ val = val.slice(1, -1);
81
+ }
75
82
 
76
83
  // only assign once
77
84
  if (undefined == obj[key]) {
78
- var val = pair.substring(index + 1, pair.length).trim();
79
-
80
- // quoted values
81
- if (val[0] === '"') {
82
- val = val.slice(1, -1);
83
- }
84
-
85
85
  obj[key] = tryDecode(val, dec);
86
86
  }
87
87
  }
@@ -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,7 +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 './index-98ca9cec.js';
156
+ import './index-0ce54f8a.js';
157
157
  import './ConferenceBanner-8792ebd2.js';
158
158
  import 'next/head';
159
159
  import '@mjhls/mjh-framework/dist/cjs/urlFor';
@@ -189,8 +189,7 @@ import './SeriesSlider-a6b1d617.js';
189
189
  import './style-inject.es-1f59c1d0.js';
190
190
  import 'disqus-react';
191
191
  import 'react-twitter-embed';
192
- import './ImageSlider-fc25202e.js';
193
- import './defineProperty-e8022d1e.js';
192
+ import './ImageSlider-da225417.js';
194
193
  import './VideoSeriesCard.js';
195
194
 
196
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-webcastPublicationDate-v3",
3
+ "version": "1.0.1066",
4
4
  "description": "Foundation Framework",
5
5
  "author": "mjh-framework",
6
6
  "license": "MIT",
@@ -1,71 +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, module.exports.__esModule = true, module.exports["default"] = module.exports;
43
- });
44
-
45
- var _asyncToGenerator = _commonjsHelpers.unwrapExports(asyncToGenerator);
46
-
47
- var defineProperty = _commonjsHelpers.createCommonjsModule(function (module) {
48
- function _defineProperty(obj, key, value) {
49
- if (key in obj) {
50
- Object.defineProperty(obj, key, {
51
- value: value,
52
- enumerable: true,
53
- configurable: true,
54
- writable: true
55
- });
56
- } else {
57
- obj[key] = value;
58
- }
59
-
60
- return obj;
61
- }
62
-
63
- module.exports = _defineProperty, module.exports.__esModule = true, module.exports["default"] = module.exports;
64
- });
65
-
66
- var _defineProperty = _commonjsHelpers.unwrapExports(defineProperty);
67
-
68
- exports._asyncToGenerator = _asyncToGenerator;
69
- exports._defineProperty = _defineProperty;
70
- exports.asyncToGenerator = asyncToGenerator;
71
- exports.defineProperty = defineProperty;
@@ -1,66 +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, module.exports.__esModule = true, module.exports["default"] = module.exports;
41
- });
42
-
43
- var _asyncToGenerator = unwrapExports(asyncToGenerator);
44
-
45
- var defineProperty = createCommonjsModule(function (module) {
46
- function _defineProperty(obj, key, value) {
47
- if (key in obj) {
48
- Object.defineProperty(obj, key, {
49
- value: value,
50
- enumerable: true,
51
- configurable: true,
52
- writable: true
53
- });
54
- } else {
55
- obj[key] = value;
56
- }
57
-
58
- return obj;
59
- }
60
-
61
- module.exports = _defineProperty, module.exports.__esModule = true, module.exports["default"] = module.exports;
62
- });
63
-
64
- var _defineProperty = unwrapExports(defineProperty);
65
-
66
- export { _asyncToGenerator as _, _defineProperty as a, asyncToGenerator as b, defineProperty as d };