@mjhls/mjh-framework 1.0.60 → 1.0.62

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/index.js CHANGED
@@ -3979,6 +3979,7 @@ var DeckContent = function (_React$Component) {
3979
3979
  }
3980
3980
 
3981
3981
  var pageNumber = row.pageNumber || _this.state.page;
3982
+ var contentCategoryName = row.contentCategory ? row.contentCategory.name : 'Articles';
3982
3983
 
3983
3984
  return React__default.createElement(
3984
3985
  VisibilitySensor,
@@ -3995,7 +3996,7 @@ var DeckContent = function (_React$Component) {
3995
3996
  { className: 'content-card', style: { flexDirection: mode } },
3996
3997
  React__default.createElement(
3997
3998
  Link,
3998
- { href: _this.mapping[row.contentCategory.name] + '/[url]', as: _this.mapping[row.contentCategory.name] + '/' + row.url.current },
3999
+ { href: _this.mapping[contentCategoryName] + '/[url]', as: _this.mapping[contentCategoryName] + '/' + row.url.current },
3999
4000
  React__default.createElement(
4000
4001
  'a',
4001
4002
  null,
@@ -4007,7 +4008,7 @@ var DeckContent = function (_React$Component) {
4007
4008
  null,
4008
4009
  React__default.createElement(
4009
4010
  Link,
4010
- { href: _this.mapping[row.contentCategory.name] + '/[url]', as: _this.mapping[row.contentCategory.name] + '/' + row.url.current },
4011
+ { href: _this.mapping[contentCategoryName] + '/[url]', as: _this.mapping[contentCategoryName] + '/' + row.url.current },
4011
4012
  React__default.createElement(
4012
4013
  'a',
4013
4014
  null,
@@ -6241,8 +6242,9 @@ var Search = function Search(_ref) {
6241
6242
  var _ref$placeholder = _ref.placeholder,
6242
6243
  placeholder = _ref$placeholder === undefined ? 'Search' : _ref$placeholder,
6243
6244
  _ref$btnText = _ref.btnText,
6244
- btnText = _ref$btnText === undefined ? 'Search' : _ref$btnText,
6245
- router$$1 = _ref.router;
6245
+ btnText = _ref$btnText === undefined ? 'Search' : _ref$btnText;
6246
+
6247
+ var router$$1 = router.useRouter();
6246
6248
 
6247
6249
  var _useState = React.useState(''),
6248
6250
  _useState2 = slicedToArray(_useState, 2),
@@ -6277,8 +6279,6 @@ var Search = function Search(_ref) {
6277
6279
  );
6278
6280
  };
6279
6281
 
6280
- var Search$1 = router.withRouter(Search);
6281
-
6282
6282
  var NavDvm = function NavDvm(props) {
6283
6283
  var logo = props.logo,
6284
6284
  mobileLogo = props.mobileLogo,
@@ -6373,7 +6373,7 @@ var NavDvm = function NavDvm(props) {
6373
6373
  }
6374
6374
  })
6375
6375
  ),
6376
- React__default.createElement(Search$1, null)
6376
+ React__default.createElement(Search, null)
6377
6377
  )
6378
6378
  )
6379
6379
  ),
@@ -10114,7 +10114,15 @@ var YouTubePlayer$1 = function YouTubePlayer(_ref) {
10114
10114
  var url = _ref.url;
10115
10115
 
10116
10116
  var id = getYoutubeId(url);
10117
- return React__default.createElement(YouTube, { videoId: id, opts: { width: '100%' } });
10117
+
10118
+ var opts = {
10119
+ width: '100%',
10120
+ playerVars: {
10121
+ rel: 0
10122
+ }
10123
+ };
10124
+
10125
+ return React__default.createElement(YouTube, { videoId: id, opts: opts });
10118
10126
  };
10119
10127
 
10120
10128
  /*
@@ -11180,5 +11188,5 @@ exports.AD300x250 = AD300x250;
11180
11188
  exports.AD300x250x600 = AD300x250x600;
11181
11189
  exports.AD728x90 = AD728x90;
11182
11190
  exports.getSerializers = getSerializers$1;
11183
- exports.Search = Search$1;
11191
+ exports.Search = Search;
11184
11192
  //# sourceMappingURL=index.js.map