@mjhls/mjh-framework 1.0.243 → 1.0.244

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,5 +1,5 @@
1
1
 
2
- # mjh-framework v. 1.0.243
2
+ # mjh-framework v. 1.0.244
3
3
 
4
4
 
5
5
  > Foundation Framework
package/dist/cjs/index.js CHANGED
@@ -12650,7 +12650,11 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
12650
12650
  if (vid.type == 'mp4') {
12651
12651
  data.push({ title: vid.title, thumbnail: urlFor(vid.thumbnail.asset), url: vid.url });
12652
12652
  } else {
12653
- data.push({ title: vid.title, thumbnail: 'https://img.youtube.com/vi/' + YoutubeGroup.getYoutubeId(vid.url) + '/hqdefault.jpg', url: vid.url });
12653
+ if (vid.thumbnail && vid.thumbnail.asset) {
12654
+ data.push({ title: vid.title, thumbnail: urlFor(vid.thumbnail.asset), url: vid.url });
12655
+ } else {
12656
+ data.push({ title: vid.title, thumbnail: 'https://img.youtube.com/vi/' + YoutubeGroup.getYoutubeId(vid.url) + '/hqdefault.jpg', url: vid.url });
12657
+ }
12654
12658
  }
12655
12659
  });
12656
12660
  // if series number doesn't exist, route back to first vid of series
package/dist/esm/index.js CHANGED
@@ -12648,7 +12648,11 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
12648
12648
  if (vid.type == 'mp4') {
12649
12649
  data.push({ title: vid.title, thumbnail: urlFor(vid.thumbnail.asset), url: vid.url });
12650
12650
  } else {
12651
- data.push({ title: vid.title, thumbnail: 'https://img.youtube.com/vi/' + getYoutubeId(vid.url) + '/hqdefault.jpg', url: vid.url });
12651
+ if (vid.thumbnail && vid.thumbnail.asset) {
12652
+ data.push({ title: vid.title, thumbnail: urlFor(vid.thumbnail.asset), url: vid.url });
12653
+ } else {
12654
+ data.push({ title: vid.title, thumbnail: 'https://img.youtube.com/vi/' + getYoutubeId(vid.url) + '/hqdefault.jpg', url: vid.url });
12655
+ }
12652
12656
  }
12653
12657
  });
12654
12658
  // if series number doesn't exist, route back to first vid of series
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mjhls/mjh-framework",
3
- "version": "1.0.243",
3
+ "version": "1.0.244",
4
4
  "description": "Foundation Framework",
5
5
  "author": "mjh-framework",
6
6
  "license": "MIT",