@mjhls/mjh-framework 1.0.859-beta.1 → 1.0.859-beta.3

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.
@@ -12,7 +12,7 @@ require('./core.get-iterator-method-f62321d4.js');
12
12
  require('./_object-pie-68c5bcbc.js');
13
13
  var _extends = require('./extends-0a918631.js');
14
14
  require('./_object-sap-5e74ba08.js');
15
- require('./inherits-452ff02c.js');
15
+ require('./inherits-1f5a1c72.js');
16
16
  require('./define-property-f4d12f4e.js');
17
17
  require('./web.dom.iterable-a0e279c1.js');
18
18
  require('./typeof-725500bc.js');
@@ -50,7 +50,7 @@ require('./GroupDeck.js');
50
50
  require('react-bootstrap');
51
51
  require('./iconBase-68959171.js');
52
52
  require('./index.esm-90433435.js');
53
- var getSerializers = require('./index-998ad42c.js');
53
+ var getSerializers = require('./index-d79b659e.js');
54
54
  require('./util-f2c1b65b.js');
55
55
  require('./brightcove-react-player-loader.es-156bd4d6.js');
56
56
  var Head = _interopDefault(require('next/head'));
@@ -12,7 +12,7 @@ require('./core.get-iterator-method-f62321d4.js');
12
12
  require('./_object-pie-68c5bcbc.js');
13
13
  var _extends$1 = require('./extends-0a918631.js');
14
14
  require('./_object-sap-5e74ba08.js');
15
- require('./inherits-452ff02c.js');
15
+ require('./inherits-1f5a1c72.js');
16
16
  require('./define-property-f4d12f4e.js');
17
17
  require('./web.dom.iterable-a0e279c1.js');
18
18
  require('./typeof-725500bc.js');
@@ -40,7 +40,7 @@ require('./main-02daeefe.js');
40
40
  require('./entities-310b46ee.js');
41
41
  require('./slicedToArray-8f385299.js');
42
42
  require('./stringify-7c5aff47.js');
43
- var asyncToGenerator = require('./asyncToGenerator-140e5f89.js');
43
+ var asyncToGenerator$1 = require('./asyncToGenerator-140e5f89.js');
44
44
  require('./Segment.js');
45
45
  require('./Beam.js');
46
46
  require('./AdSlot.js');
@@ -54,7 +54,7 @@ require('react-bootstrap');
54
54
  require('./iconBase-68959171.js');
55
55
  require('./index.esm-90433435.js');
56
56
  var VideoSeriesListing = require('./VideoSeriesListing.js');
57
- var getSerializers = require('./index-998ad42c.js');
57
+ var getSerializers = require('./index-d79b659e.js');
58
58
  require('./util-f2c1b65b.js');
59
59
  require('./brightcove-react-player-loader.es-156bd4d6.js');
60
60
  require('next/head');
@@ -164,12 +164,12 @@ var VideoProgramLandingPage = function VideoProgramLandingPage(props) {
164
164
  };
165
165
 
166
166
  VideoProgramLandingPage.getInitialData = function () {
167
- var _ref = asyncToGenerator._asyncToGenerator( /*#__PURE__*/asyncToGenerator.regenerator.mark(function _callee(context, client) {
167
+ var _ref = asyncToGenerator$1._asyncToGenerator( /*#__PURE__*/asyncToGenerator$1.regenerator.mark(function _callee(context, client) {
168
168
  var itemsPerPage = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 6;
169
169
  var topicId = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : '';
170
170
  var taxonomyId = arguments[4];
171
171
  var pathname, virtualBlock, query, taxonomy_ids_res, taxonomy_ids, i, res, j, topics, urlQuery, currentPage, start, params, posts;
172
- return asyncToGenerator.regenerator.wrap(function _callee$(_context) {
172
+ return asyncToGenerator$1.regenerator.wrap(function _callee$(_context) {
173
173
  while (1) {
174
174
  switch (_context.prev = _context.next) {
175
175
  case 0:
@@ -12,7 +12,7 @@ require('./core.get-iterator-method-f62321d4.js');
12
12
  require('./_object-pie-68c5bcbc.js');
13
13
  require('./extends-0a918631.js');
14
14
  require('./_object-sap-5e74ba08.js');
15
- require('./inherits-452ff02c.js');
15
+ require('./inherits-1f5a1c72.js');
16
16
  require('./define-property-f4d12f4e.js');
17
17
  require('./web.dom.iterable-a0e279c1.js');
18
18
  var _typeof = require('./typeof-725500bc.js');
@@ -40,7 +40,7 @@ require('./index-96b3db50.js');
40
40
  require('./main-02daeefe.js');
41
41
  require('./slicedToArray-8f385299.js');
42
42
  require('./stringify-7c5aff47.js');
43
- var asyncToGenerator = require('./asyncToGenerator-140e5f89.js');
43
+ var asyncToGenerator$1 = require('./asyncToGenerator-140e5f89.js');
44
44
  require('./Segment.js');
45
45
  require('./Beam.js');
46
46
  require('./AdSlot.js');
@@ -109,11 +109,11 @@ var VideoSeriesLandingPage = function VideoSeriesLandingPage(props) {
109
109
  };
110
110
 
111
111
  VideoSeriesLandingPage.getInitialData = function () {
112
- var _ref = asyncToGenerator._asyncToGenerator( /*#__PURE__*/asyncToGenerator.regenerator.mark(function _callee(context, client) {
112
+ var _ref = asyncToGenerator$1._asyncToGenerator( /*#__PURE__*/asyncToGenerator$1.regenerator.mark(function _callee(context, client) {
113
113
  var itemsPerPage = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 10;
114
114
  var taxonomyId = arguments[3];
115
115
  var today, urlQuery, seriesName, currentPage, start, params, query, posts, seriesTitle, summary, url;
116
- return asyncToGenerator.regenerator.wrap(function _callee$(_context) {
116
+ return asyncToGenerator$1.regenerator.wrap(function _callee$(_context) {
117
117
  while (1) {
118
118
  switch (_context.prev = _context.next) {
119
119
  case 0:
@@ -10,7 +10,7 @@ require('./core.get-iterator-method-f62321d4.js');
10
10
  require('./_object-pie-68c5bcbc.js');
11
11
  var _extends = require('./extends-0a918631.js');
12
12
  require('./_object-sap-5e74ba08.js');
13
- var inherits = require('./inherits-452ff02c.js');
13
+ var inherits = require('./inherits-1f5a1c72.js');
14
14
  require('./define-property-f4d12f4e.js');
15
15
  require('./web.dom.iterable-a0e279c1.js');
16
16
  require('./typeof-725500bc.js');
package/dist/cjs/View.js CHANGED
@@ -12,7 +12,7 @@ require('./core.get-iterator-method-f62321d4.js');
12
12
  require('./_object-pie-68c5bcbc.js');
13
13
  var _extends$1 = require('./extends-0a918631.js');
14
14
  require('./_object-sap-5e74ba08.js');
15
- require('./inherits-452ff02c.js');
15
+ require('./inherits-1f5a1c72.js');
16
16
  require('./define-property-f4d12f4e.js');
17
17
  require('./web.dom.iterable-a0e279c1.js');
18
18
  var _typeof = require('./typeof-725500bc.js');
@@ -52,7 +52,7 @@ require('./GroupDeck.js');
52
52
  require('react-bootstrap');
53
53
  require('./iconBase-68959171.js');
54
54
  require('./index.esm-90433435.js');
55
- var getSerializers = require('./index-998ad42c.js');
55
+ var getSerializers = require('./index-d79b659e.js');
56
56
  require('./util-f2c1b65b.js');
57
57
  require('./brightcove-react-player-loader.es-156bd4d6.js');
58
58
  var Head = _interopDefault(require('next/head'));
@@ -473,35 +473,35 @@ function generateSchema(props) {
473
473
  thumbnail = _props$article.thumbnail,
474
474
  published = _props$article.published,
475
475
  _updatedAt = _props$article._updatedAt,
476
- seoTag = _props$article.seoTag,
476
+ _props$article$seoTag = _props$article.seoTag,
477
+ seoTag = _props$article$seoTag === undefined ? [] : _props$article$seoTag,
477
478
  _props$Website = props.Website,
478
479
  liveDomain = _props$Website.liveDomain,
479
480
  websiteTitle = _props$Website.title,
480
481
  logo = _props$Website.logo,
481
482
  client = props.client;
482
483
 
483
- var authors = authorDetails && authorDetails.length > 0 && authorDetails.find(function (author) {
484
- return author.displayName;
485
- }) && authorDetails.reduce(function (result, author) {
486
- if (author.displayName) return [].concat(toConsumableArray._toConsumableArray(result), [{
487
- '@type': 'Person',
488
- name: author.displayName
489
- }]);else return result;
490
- }, []);
484
+ var isAuthorFound = authorDetails && authorDetails.length > 0 && authorDetails[0].displayName;
491
485
  var articleSection = content_placement && content_placement.map(function (cp) {
492
486
  return cp.name;
493
487
  });
494
488
 
495
- if (title && thumbnail && client && published && _updatedAt) {
496
- return _extends$1._extends({
489
+ if (title && thumbnail && published && websiteTitle && liveDomain && logo && isAuthorFound) {
490
+ return {
497
491
  '@context': 'https://schema.org',
498
492
  '@type': 'NewsArticle',
493
+ mainEntityOfPage: 'https://' + liveDomain + '/view/' + url.current,
499
494
  headline: title,
495
+ description: summary,
496
+ articleBody: toPlainText(body),
497
+ inLanguage: 'en-US',
500
498
  image: urlFor({ source: thumbnail, client: client }),
501
- datePublished: published,
502
- dateModified: _updatedAt,
503
- inLanguage: 'en-US'
504
- }, websiteTitle && liveDomain && logo && {
499
+ keywords: seoTag.join(),
500
+ articleSection: articleSection,
501
+ author: {
502
+ '@type': 'Person',
503
+ name: authorDetails[0].displayName
504
+ },
505
505
  publisher: {
506
506
  '@type': 'Organization',
507
507
  name: websiteTitle,
@@ -509,13 +509,10 @@ function generateSchema(props) {
509
509
  '@type': 'ImageObject',
510
510
  url: 'https://' + liveDomain + logo
511
511
  }
512
- }
513
- }, articleSection && { articleSection: articleSection }, seoTag && seoTag.length > 0 && { keywords: seoTag.join() }, body && body.length > 0 && { articleBody: toPlainText(body) }, summary && { description: summary }, liveDomain && url && url.current && {
514
- mainEntityOfPage: {
515
- '@type': 'WebPage',
516
- '@id': 'https://' + liveDomain + '/view/' + url.current
517
- }
518
- }, authors && authors.length > 0 && { author: authors });
512
+ },
513
+ datePublished: published,
514
+ dateModified: _updatedAt
515
+ };
519
516
  }
520
517
  return null;
521
518
  }
@@ -9,13 +9,13 @@ require('./_library-dd23b178.js');
9
9
  require('./_iter-detect-60b2f026.js');
10
10
  require('./core.get-iterator-method-f62321d4.js');
11
11
  require('./web.dom.iterable-a0e279c1.js');
12
- var asyncToGenerator = require('./asyncToGenerator-140e5f89.js');
12
+ var asyncToGenerator$1 = require('./asyncToGenerator-140e5f89.js');
13
13
  var md5 = require('./md5-5039b1a6.js');
14
14
 
15
15
  var encrypt = function () {
16
- var _ref = asyncToGenerator._asyncToGenerator( /*#__PURE__*/asyncToGenerator.regenerator.mark(function _callee(password) {
16
+ var _ref = asyncToGenerator$1._asyncToGenerator( /*#__PURE__*/asyncToGenerator$1.regenerator.mark(function _callee(password) {
17
17
  var hash;
18
- return asyncToGenerator.regenerator.wrap(function _callee$(_context) {
18
+ return asyncToGenerator$1.regenerator.wrap(function _callee$(_context) {
19
19
  while (1) {
20
20
  switch (_context.prev = _context.next) {
21
21
  case 0:
@@ -36,9 +36,9 @@ var encrypt = function () {
36
36
  }();
37
37
 
38
38
  var comparePassword = function () {
39
- var _ref2 = asyncToGenerator._asyncToGenerator( /*#__PURE__*/asyncToGenerator.regenerator.mark(function _callee2(plainTextPassword, hashedPassword) {
39
+ var _ref2 = asyncToGenerator$1._asyncToGenerator( /*#__PURE__*/asyncToGenerator$1.regenerator.mark(function _callee2(plainTextPassword, hashedPassword) {
40
40
  var hash;
41
- return asyncToGenerator.regenerator.wrap(function _callee2$(_context2) {
41
+ return asyncToGenerator$1.regenerator.wrap(function _callee2$(_context2) {
42
42
  while (1) {
43
43
  switch (_context2.prev = _context2.next) {
44
44
  case 0:
@@ -62,10 +62,10 @@ var faunadb = require('faunadb'),
62
62
  q = faunadb.query;
63
63
 
64
64
  var registerUser = function () {
65
- var _ref = asyncToGenerator._asyncToGenerator( /*#__PURE__*/asyncToGenerator.regenerator.mark(function _callee(body) {
65
+ var _ref = asyncToGenerator$1._asyncToGenerator( /*#__PURE__*/asyncToGenerator$1.regenerator.mark(function _callee(body) {
66
66
  var secret = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'fnAEG3Bb7AACAC0BiSQFYGBLFUtHjn3QOTKE1iBX';
67
67
  var data, client, hashedPassword, result;
68
- return asyncToGenerator.regenerator.wrap(function _callee$(_context) {
68
+ return asyncToGenerator$1.regenerator.wrap(function _callee$(_context) {
69
69
  while (1) {
70
70
  switch (_context.prev = _context.next) {
71
71
  case 0:
@@ -126,10 +126,10 @@ var registerUser = function () {
126
126
  }();
127
127
 
128
128
  var findUserByEmail = function () {
129
- var _ref2 = asyncToGenerator._asyncToGenerator( /*#__PURE__*/asyncToGenerator.regenerator.mark(function _callee2(email) {
129
+ var _ref2 = asyncToGenerator$1._asyncToGenerator( /*#__PURE__*/asyncToGenerator$1.regenerator.mark(function _callee2(email) {
130
130
  var secret = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'fnAEG3Bb7AACAC0BiSQFYGBLFUtHjn3QOTKE1iBX';
131
131
  var client, result;
132
- return asyncToGenerator.regenerator.wrap(function _callee2$(_context2) {
132
+ return asyncToGenerator$1.regenerator.wrap(function _callee2$(_context2) {
133
133
  while (1) {
134
134
  switch (_context2.prev = _context2.next) {
135
135
  case 0:
@@ -161,10 +161,10 @@ var findUserByEmail = function () {
161
161
  }();
162
162
 
163
163
  var authenticateUser = function () {
164
- var _ref3 = asyncToGenerator._asyncToGenerator( /*#__PURE__*/asyncToGenerator.regenerator.mark(function _callee3(email, password) {
164
+ var _ref3 = asyncToGenerator$1._asyncToGenerator( /*#__PURE__*/asyncToGenerator$1.regenerator.mark(function _callee3(email, password) {
165
165
  var secret = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'fnAEG3Bb7AACAC0BiSQFYGBLFUtHjn3QOTKE1iBX';
166
166
  var client, result, hashedPassword, isAuth;
167
- return asyncToGenerator.regenerator.wrap(function _callee3$(_context3) {
167
+ return asyncToGenerator$1.regenerator.wrap(function _callee3$(_context3) {
168
168
  while (1) {
169
169
  switch (_context3.prev = _context3.next) {
170
170
  case 0:
@@ -204,10 +204,10 @@ var authenticateUser = function () {
204
204
  }();
205
205
 
206
206
  var updateUserSecret = function () {
207
- var _ref4 = asyncToGenerator._asyncToGenerator( /*#__PURE__*/asyncToGenerator.regenerator.mark(function _callee4(email, hash) {
207
+ var _ref4 = asyncToGenerator$1._asyncToGenerator( /*#__PURE__*/asyncToGenerator$1.regenerator.mark(function _callee4(email, hash) {
208
208
  var secret = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'fnAEG3Bb7AACAC0BiSQFYGBLFUtHjn3QOTKE1iBX';
209
209
  var expiration, client, result;
210
- return asyncToGenerator.regenerator.wrap(function _callee4$(_context4) {
210
+ return asyncToGenerator$1.regenerator.wrap(function _callee4$(_context4) {
211
211
  while (1) {
212
212
  switch (_context4.prev = _context4.next) {
213
213
  case 0:
@@ -245,10 +245,10 @@ var updateUserSecret = function () {
245
245
  }();
246
246
 
247
247
  var updateUserPassword = function () {
248
- var _ref5 = asyncToGenerator._asyncToGenerator( /*#__PURE__*/asyncToGenerator.regenerator.mark(function _callee5(hash, newPassword) {
248
+ var _ref5 = asyncToGenerator$1._asyncToGenerator( /*#__PURE__*/asyncToGenerator$1.regenerator.mark(function _callee5(hash, newPassword) {
249
249
  var secret = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'fnAEG3Bb7AACAC0BiSQFYGBLFUtHjn3QOTKE1iBX';
250
250
  var now, client, result, expiration, password, updatePassword;
251
- return asyncToGenerator.regenerator.wrap(function _callee5$(_context5) {
251
+ return asyncToGenerator$1.regenerator.wrap(function _callee5$(_context5) {
252
252
  while (1) {
253
253
  switch (_context5.prev = _context5.next) {
254
254
  case 0:
@@ -7,14 +7,14 @@ require('./_library-dd23b178.js');
7
7
  require('./_iter-detect-60b2f026.js');
8
8
  require('./core.get-iterator-method-f62321d4.js');
9
9
  require('./web.dom.iterable-a0e279c1.js');
10
- var asyncToGenerator = require('./asyncToGenerator-140e5f89.js');
10
+ var asyncToGenerator$1 = require('./asyncToGenerator-140e5f89.js');
11
11
 
12
12
  var _this = undefined;
13
13
 
14
14
  var getRootDocGroup = function () {
15
- var _ref = asyncToGenerator._asyncToGenerator( /*#__PURE__*/asyncToGenerator.regenerator.mark(function _callee(id, client) {
15
+ var _ref = asyncToGenerator$1._asyncToGenerator( /*#__PURE__*/asyncToGenerator$1.regenerator.mark(function _callee(id, client) {
16
16
  var query, result, checkPropExist;
17
- return asyncToGenerator.regenerator.wrap(function _callee$(_context) {
17
+ return asyncToGenerator$1.regenerator.wrap(function _callee$(_context) {
18
18
  while (1) {
19
19
  switch (_context.prev = _context.next) {
20
20
  case 0:
@@ -10,7 +10,7 @@ require('./core.get-iterator-method-f62321d4.js');
10
10
  require('./_object-pie-68c5bcbc.js');
11
11
  require('./extends-0a918631.js');
12
12
  require('./_object-sap-5e74ba08.js');
13
- require('./inherits-452ff02c.js');
13
+ require('./inherits-1f5a1c72.js');
14
14
  require('./define-property-f4d12f4e.js');
15
15
  require('./web.dom.iterable-a0e279c1.js');
16
16
  require('./typeof-725500bc.js');
@@ -46,7 +46,7 @@ require('./GroupDeck.js');
46
46
  require('react-bootstrap');
47
47
  require('./iconBase-68959171.js');
48
48
  require('./index.esm-90433435.js');
49
- var getSerializers = require('./index-998ad42c.js');
49
+ var getSerializers = require('./index-d79b659e.js');
50
50
  require('./util-f2c1b65b.js');
51
51
  require('./brightcove-react-player-loader.es-156bd4d6.js');
52
52
  require('next/head');
@@ -6,7 +6,7 @@ var _commonjsHelpers = require('./_commonjsHelpers-06173234.js');
6
6
  var _toObject = require('./_to-object-329a650b.js');
7
7
  var toConsumableArray = require('./toConsumableArray-9a3476fe.js');
8
8
  var _extends$1 = require('./extends-0a918631.js');
9
- var inherits$1 = require('./inherits-452ff02c.js');
9
+ var inherits$1 = require('./inherits-1f5a1c72.js');
10
10
  var _typeof = require('./typeof-725500bc.js');
11
11
  var React = require('react');
12
12
  var React__default = _interopDefault(React);
package/dist/cjs/index.js CHANGED
@@ -14,7 +14,7 @@ require('./core.get-iterator-method-f62321d4.js');
14
14
  require('./_object-pie-68c5bcbc.js');
15
15
  require('./extends-0a918631.js');
16
16
  require('./_object-sap-5e74ba08.js');
17
- require('./inherits-452ff02c.js');
17
+ require('./inherits-1f5a1c72.js');
18
18
  require('./define-property-f4d12f4e.js');
19
19
  require('./web.dom.iterable-a0e279c1.js');
20
20
  require('./typeof-725500bc.js');
@@ -77,7 +77,7 @@ require('./index.esm-90433435.js');
77
77
  var VideoSeriesListing = require('./VideoSeriesListing.js');
78
78
  var ArticleSeriesListing = require('./ArticleSeriesListing.js');
79
79
  var ArticleCarousel = require('./ArticleCarousel.js');
80
- var getSerializers = require('./index-998ad42c.js');
80
+ var getSerializers = require('./index-d79b659e.js');
81
81
  require('./util-f2c1b65b.js');
82
82
  require('./brightcove-react-player-loader.es-156bd4d6.js');
83
83
  require('next/head');
@@ -4,7 +4,7 @@ var _commonjsHelpers = require('./_commonjsHelpers-06173234.js');
4
4
  var _toObject = require('./_to-object-329a650b.js');
5
5
  var es6_string_iterator = require('./es6.string.iterator-cc0bbaa4.js');
6
6
  var _objectSap = require('./_object-sap-5e74ba08.js');
7
- var defineProperty = require('./define-property-f4d12f4e.js');
7
+ var defineProperty$1 = require('./define-property-f4d12f4e.js');
8
8
  var _typeof = require('./typeof-725500bc.js');
9
9
 
10
10
  // 19.1.2.9 Object.getPrototypeOf(O)
@@ -44,7 +44,7 @@ exports.__esModule = true;
44
44
 
45
45
 
46
46
 
47
- var _defineProperty2 = _interopRequireDefault(defineProperty.defineProperty);
47
+ var _defineProperty2 = _interopRequireDefault(defineProperty$1.defineProperty);
48
48
 
49
49
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
50
50