@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/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # mjh-framework v. 1.0.60
1
+ # mjh-framework v. 1.0.62
2
2
 
3
3
  > Foundation Framework
4
4
 
package/dist/index.es.js CHANGED
@@ -5,7 +5,7 @@ import Row from 'react-bootstrap/Row';
5
5
  import Col from 'react-bootstrap/Col';
6
6
  import Card from 'react-bootstrap/Card';
7
7
  import Link from 'next/link';
8
- import { withRouter } from 'next/router';
8
+ import { withRouter, useRouter } from 'next/router';
9
9
  import Media from 'react-bootstrap/Media';
10
10
  import ListGroup from 'react-bootstrap/ListGroup';
11
11
  import Head from 'next/head';
@@ -3972,6 +3972,7 @@ var DeckContent = function (_React$Component) {
3972
3972
  }
3973
3973
 
3974
3974
  var pageNumber = row.pageNumber || _this.state.page;
3975
+ var contentCategoryName = row.contentCategory ? row.contentCategory.name : 'Articles';
3975
3976
 
3976
3977
  return React__default.createElement(
3977
3978
  VisibilitySensor,
@@ -3988,7 +3989,7 @@ var DeckContent = function (_React$Component) {
3988
3989
  { className: 'content-card', style: { flexDirection: mode } },
3989
3990
  React__default.createElement(
3990
3991
  Link,
3991
- { href: _this.mapping[row.contentCategory.name] + '/[url]', as: _this.mapping[row.contentCategory.name] + '/' + row.url.current },
3992
+ { href: _this.mapping[contentCategoryName] + '/[url]', as: _this.mapping[contentCategoryName] + '/' + row.url.current },
3992
3993
  React__default.createElement(
3993
3994
  'a',
3994
3995
  null,
@@ -4000,7 +4001,7 @@ var DeckContent = function (_React$Component) {
4000
4001
  null,
4001
4002
  React__default.createElement(
4002
4003
  Link,
4003
- { href: _this.mapping[row.contentCategory.name] + '/[url]', as: _this.mapping[row.contentCategory.name] + '/' + row.url.current },
4004
+ { href: _this.mapping[contentCategoryName] + '/[url]', as: _this.mapping[contentCategoryName] + '/' + row.url.current },
4004
4005
  React__default.createElement(
4005
4006
  'a',
4006
4007
  null,
@@ -6234,8 +6235,9 @@ var Search = function Search(_ref) {
6234
6235
  var _ref$placeholder = _ref.placeholder,
6235
6236
  placeholder = _ref$placeholder === undefined ? 'Search' : _ref$placeholder,
6236
6237
  _ref$btnText = _ref.btnText,
6237
- btnText = _ref$btnText === undefined ? 'Search' : _ref$btnText,
6238
- router = _ref.router;
6238
+ btnText = _ref$btnText === undefined ? 'Search' : _ref$btnText;
6239
+
6240
+ var router = useRouter();
6239
6241
 
6240
6242
  var _useState = useState(''),
6241
6243
  _useState2 = slicedToArray(_useState, 2),
@@ -6270,8 +6272,6 @@ var Search = function Search(_ref) {
6270
6272
  );
6271
6273
  };
6272
6274
 
6273
- var Search$1 = withRouter(Search);
6274
-
6275
6275
  var NavDvm = function NavDvm(props) {
6276
6276
  var logo = props.logo,
6277
6277
  mobileLogo = props.mobileLogo,
@@ -6366,7 +6366,7 @@ var NavDvm = function NavDvm(props) {
6366
6366
  }
6367
6367
  })
6368
6368
  ),
6369
- React__default.createElement(Search$1, null)
6369
+ React__default.createElement(Search, null)
6370
6370
  )
6371
6371
  )
6372
6372
  ),
@@ -10107,7 +10107,15 @@ var YouTubePlayer$1 = function YouTubePlayer(_ref) {
10107
10107
  var url = _ref.url;
10108
10108
 
10109
10109
  var id = getYoutubeId(url);
10110
- return React__default.createElement(YouTube, { videoId: id, opts: { width: '100%' } });
10110
+
10111
+ var opts = {
10112
+ width: '100%',
10113
+ playerVars: {
10114
+ rel: 0
10115
+ }
10116
+ };
10117
+
10118
+ return React__default.createElement(YouTube, { videoId: id, opts: opts });
10111
10119
  };
10112
10120
 
10113
10121
  /*
@@ -11153,5 +11161,5 @@ var getSerializers$1 = function getSerializers(client) {
11153
11161
  };
11154
11162
  };
11155
11163
 
11156
- export { ContentCard as DeckContent, DeckQueue, ThumbnailCard, TaxonomyCard, GroupDeck, Column1, Column2, Column3, Header, LeftNav, AccordionPanel, NavMagazine, NavNative, NavNormal, NavDvm, TemplateNormal, AD300x250, AD300x250x600, AD728x90, getSerializers$1 as getSerializers, Search$1 as Search };
11164
+ export { ContentCard as DeckContent, DeckQueue, ThumbnailCard, TaxonomyCard, GroupDeck, Column1, Column2, Column3, Header, LeftNav, AccordionPanel, NavMagazine, NavNative, NavNormal, NavDvm, TemplateNormal, AD300x250, AD300x250x600, AD728x90, getSerializers$1 as getSerializers, Search };
11157
11165
  //# sourceMappingURL=index.es.js.map